This is a sample node.js REST server built using TDD on Jest. Using this you can very simply connect to a database and perform basic CRUD operations.
- Create or acquire a DB connection string. I used a free account created here mongo db
- Create a
.env
file containing your DB connection string. You can refer to.env.example
for reference. - Run
npm install
node server.js
npm run test