A simple Contact list app to get around Mean Stack development environment. The app essentially stores the contact that we add in mongo database and queries it back for the display. The app gives functionality to remove or edit entries from the database and update the details on the display.
You need to have NodeJS and MongoDB installed on your system.
- Open cmd in the current directory where the files have been extracted. And type...
npm install
- This should install all the required node modules you'll need to run the app.
- You can either use the default location to create the database that'd be C:\data\db or you can locally create one in your current directory by running the command...
mkdir data
- This will create a directory in your current workspace.
- Open a new cmd terminal and run the following command if you're gonna use the default location for database..
mongod
Or if you created data directory in the current work environment, then run..
mongod --dbpath "Path to your data directory"
- Dont use the quotes while giving path, also make sure your path looks like PATH\data or so.
- In the other terminal that is open, run the command..
node server.js
- Open up your browser and type localhost:3000