IMPORTANT: To run MEAN stack applications locally you need NodeJS installed and MongoDB running.
The project contains two applications, one for the client and another for the server api, below are the steps to get each of them setup and running:
-
Ensure you have MongoDB installed and running
-
Open a command line window and navigate to the "/server" folder below the project root folder
-
Run
npm install
to install all required npm packages that are defined in the package.json file -
Run
node server.js
to start the server, by default it runs at http://localhost:4000
-
Open a command line window and navigate to the "/client" folder below the project root folder
-
Run
npm install
to install all required npm packages that are defined in the package.json file -
Run
ng serve -o
to start the client, a browser window should automatically open to the application at http://localhost:4200