minutedock
#Install app
- Install node.js
- Install mongodb
- Clone repo and checkout the release branch or download the latest release.
- run 'npm install'
- run 'npm install -g gulp'
- There is config file, app.json at '<path_to_repo>/config/default.json'. Override the properties according to environment name.
- Set use.https to true or false in app.json. Keep it true if you don't have https web server sitting in front of node server.
- If using https, create ssl certificates. Create ssl key and ssl cert files. Modify app.json and set ssl.key.path and ssl.cert.path
- Regenerate the required salts and secrets mentioned in app.json. Don't use the defaults.
- Create google oauth2 credentials and update google.auth.client.id and google.auth.client.secret properties in app.json
- From '<path_to_repo>', execute 'gulp build'
- From '<path_to_repo>' execute 'gulp start'
- Access https://localhost:\<https_port_configured_in_config_file>
#Update Selenium Drivers and Run tests Run 'npm test' from '<path_to_repo>'
Production Setup
Hosted IP: 54.229.183.159 (AWS EC2)
- Change to
noderunner
user - cd
/home/noderunner/apps/minutedock
- Run scrips
restart
/start
/stop
withproduction
as first argument. - Restart Nginx if required.