Git Product home page Git Product logo

hippo-angular's Introduction

Instructions for setting up the Hippo Angular client project.
=============================================================

1) Clone the https://github.com/mgijsberti/gs-rest-service.git into a local project, and start up the greeting service. Use the start-server.sh script, or use the commands from the script. Check in your local browser the REST service with http://localhost:8086/greeting?name=martijn.

2) Install Apache Httpd Webserver (https://httpd.apache.org/) on your local machine, and start it up under localhost. Make sure that mod_proxy module  (http://httpd.apache.org/docs/2.2/mod/mod_proxy.html) for Forward and Reverse proxies is installed

3) Virtualhost configuration in apache.

<VirtualHost *:80>
      ServerName cms.example.com

      ProxyPreserveHost Off

      ProxyPass          /app                 !
      ProxyPass /site/ http://127.0.0.1:8080/site/
      ProxyPass / http://127.0.0.1:8080/cms/
      ProxyPassReverse / http://127.0.0.1:8080/cms/
      ProxyPassReverseCookiePath /cms /
</VirtualHost>


<VirtualHost *:80>
      ServerName www.example.com
      ServerAlias *.example.com

      ProxyPreserveHost  On

      ProxyPass          /app                 !
      ProxyPass  / http://127.0.0.1:8080/site/
      ProxyPassReverse  / http://127.0.0.1:8080/site/
      ProxyPassReverseCookiePath  /site /

</VirtualHost>

4) Add to your /etc/hosts to following line
127.0.0.1	localhost  www.example.com cms.example.com

See http://www.onehippo.org/library/deployment/configuring/configure-apache-httpd-web-server-for-cms-and-sites.html for the details.

5) In the frontend frontend/src/deploy-apache.sh set the document root and the location of the apache log
DOCUMENT_ROOT='/Library/WebServer/Documents'
APACHE_LOG='/private/var/log/apache2'

The script copies the Angular application into your Apache webroot folder.

6) In the project
mvn clean install
mvn -Pcargo.run -Drepo.path=storage

7) Browse to www.example.com in your browser

8) Browser to http://www.example.com/greeting and test the greeting application. It should give back the name you enter in the input field.

9) Login into the cms (http://http://cms.example.com) and go to the channel manager. Check if you can remove and add the greeting component in the channel manager. What happens if you configure the component with the wrong url ?
   
   

hippo-angular's People

Contributors

mgijsberti avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.