An express API linked to an NoSQL (mongodb) database
-
First install dependencies with
npm install
-
To run the app do
npm start
To run the tests do npm test
- express
- mongoose (mongodb)
- express-mongo-sanitize
- Testing: vscode REST client extension
CI endpoint testing:
- Jest
- Supertest
Building: 4 Hours
Endpoint Testing: 3 hours
Since I've been mostly working with mobile-firebase and with frontend, I had to refresh my memory on backend things + this is my first time making a REST API connected to a database. My experience with fullstack was mostly with firebase and django (which loosely follows a MVC model with most of the unlying (low-level) SQL queries abstracted away).
- First time making an API connected to a database
- First time using mongodb in JavaScript/TypeScript
- First time sanitizing in express -> decided to use express-mongo-sanitize
- First time doing REST endpoint testing
Bugs:
Set headers after they are sent to the client warning
Endpoint tests not all passing