This project contains both a front-end application using the Angular CLI and a back-end API built with Express.
You will need to serve both simultaneously for http requests for function properly.
-
In root directory run
npm install
from the terminal. -
Next run
npm run full-stack
.
(This creates a proxy, which handles CORS issues that result from sending http requests to localhost.)
-
Open a second terminal. Do not close the terminal serving the angular app.
-
Navigate to the root of the server directory.
-
Open the terminal and run
npm install
. -
Install Nodemon globally from the terminal
npm install -g nodemon
. -
Run
nodemon index
in the terminal to serve the api.