heroku-configured Angular 4 Node.js
This is a Angular 4 website with Node.js v7 as backend server.
-
Build client side
cd angular-src npm install -
Build server side
cd ../ npm install -
Configure server side dot env
Create and configure
.envfrom.env.sample
cd angular-src
ng serve
Save new code and auto-refreshed at localhost:8282
- Console 1
npm run watch_client - Console 2
nodemon server.js NODE_ENV=DEV
- Install Node.js plugin
- Javascript Files: server.js
- Environment variables: NODE_ENV=DEV
npm run build_client (Just to build /client)
heroku local
git push heroku master