To get up and running with this project, run the following commands from the root of the folder that contains this README file.
First, install the project's dependencies using npm
.
npm install
Second, ensure that you have MongoDB installed globally on your system.
- Open a
Command Prompt
(on Windows) orTerminal
(on Mac OS X) instance and run the commandmongod
(orsudo mongod
) to start the MongoDB daemon. - If that command failed then you’ll need to install MongoDB.
- How to Install MongoDB on Windows
- How to Install MongoDB on a Mac
Third, seed your MongoDB database with data.
npm run seed
And lastly, start the application.
npm start
To test the Express server, browse to the URL http://localhost:5000/.
To test the application the 'RESTAPI.postman.json' file can be uploaded to postman, which will give you all of the necessary routes to test.