Automated build for research-hub-web
596
This section explains how to develop code for the Research Hub.
Install Node 4 or higher with NPM 3 or higher.
Install angular-cli
npm install -g angular-cli
Navigate to project directory, e.g:
cd ~/workspace/research-hub
Update dependencies:
npm install
Run npm start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve.
To get more help on the angular-cli use ng --help or go check out the Angular-CLI README.
This section explains how to deploy the Research Hub to production.
Run ng github-pages:deploy to deploy to Github Pages.
The Research Hub is build with the angular-cli and hosted on an Apache Http server in a Docker container.
Install Docker by following these instructions.
staging branch.Setup the running docker containers with the following commands:
sudo su -
docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock centurylink/watchtower --cleanup
docker run --restart=always -p 80:80 -p 443:443 -v /research-hub:/usr/local/apache2/conf/keys -d uoacer/research-hub:production
docker run --restart=always -p 8080:443 -v /research-hub:/usr/local/apache2/conf/keys -d uoacer/research-hub:staging
Content type
Image
Digest
Size
289.1 MB
Last updated
over 8 years ago
docker pull uoacer/research-hub-web:production