Test a Node RESTful API with Mocha and Chai https://scotch.io/tutorials/test-a-node-restful-api-with-mocha-and-chai
Create a new folder called 'config' Create 3 new files in the newly created config folder
- default.json
{
"DBHost": "YOUR_DB_URI"
}
- dev.json
{
"DBHost": "YOUR_DEV_DB_URI"
}
- test.json
{
"DBHost": "YOUR_TEST_DB_URI"
}