- Angular 5 - This project was generated with Angular CLI version 1.7.2
- Node v8.11.1 && npm v5.6.0
- MongoDb v3.6.3
I have used Ubuntu 16.04 for the development of this project, conflicts may arrive when running it in other OS.
-- real-estate/ (root direcory for Angular front-end ) -- API/ (directory for Node-express back-end )
- Install the above required services
- After clonning the repo use
npm install
under the root directory && - use
npm install
under the API/ directory
Note - Back-end and front-end will have their individual node_modules
-
ng serve
in the root directory - Angular -
sudo service mongod start
for starting mongoDB server- Note: this command may vary acc to the OS, please check mongodb for the right command for your system
-
node index.js
in the API/ directory - Backend -- Note:
- Mongodb must be running before running backend server
- I prefer using nodemon for running back-end to install
npm i -g nodemon
and then run usingnodemon index.js
THANKS
HOPE YOU WILL LIKE MY EFFORTS