A bot with all the answers to frequently asked questions and arguments about veganism
- Node 8.6.0
- npm 5.3.0
- Angular-cli 1.6.2
npm install
ng serve
Navigate to http://localhost:4200/
ng build
node server.js
Optionally, use nodemon for automatic restart on changes
nodemon server.js
After pulling on the droplet, run
ng build --prod
Then, start the server with Forever
PORT=80 forever start server.js
To stop the server, first find the id of the process
forever list
then run
forever stop {pid}
or, to restart
forever restart {pid}
If IP address needs to be added to mongoDB, the IP address of the droplet can be shown with
ip addr show
// TODO
// TODO