Based on the following tutorial - http://cwbuecheler.com/web/tutorials/2014/restful-web-app-node-express-mongodb/
- Git: http://git-scm.com/
- Node.js: https://nodejs.org/
- Mongo: https://docs.mongodb.com/manual/installation/
Clone the repositry using git.
git clone https://github.com/thombaynes/nodeTest.git
Install the necessary node modules
npm install
In your project directory, create a data
folder (or anywhere else, just know the location of this folder). Then start the mongo database, pointing it to your data
folder
mongod --dbpath ~/nodetest/data
Run the app
npm start
Write tests for this application, building on the skeleton that has been provided for you. All back-end tests are stored in the test
directory, and can be run using the following commands.
The tests should, for each file, be sure to test the most important parts of that file. We will be looking to see that the tests pass, what they test, and what they don't test.
Run the tests
npm run test
Get the test coverage
npm run coverage
- Feel free to use any other npm libraries of your choosing, and/or not use what libraries are included.
- Feel free to rewrite the application code itself.
Either provide the contents of the test
directory, or clone the repository yourself on GitHub, and provide the URL of the repo.