- Node.js v18+
- GitHub account and client
- Visual Studio Code
- Postman
- MongoDB (optional)
-
Fork the project into your own GitHub account (it should be kept public)
-
Install the project from your own fork and set it to run on port 3000
-
Fix
GET /items
route so that it properly returns the list of all existing items -
Add the ability to filter the items in the
GET /items
route (propose a solution that complies with the best practices of a REST API):GET /items?filter_by=active
should return all the active itemsGET /items?filter_by=inactive
should return all the inactive items
-
Identify some basic security and stability issues, and document simple ways of correcting them (implementation is not required but is considered a bonus)
-
Create a new 'mongodb' branch of the project on GitHub: with the aim of connecting the application to a MongoDB database, which script(s) should be adapted? Propose a draft code along these lines (a fully functional implementation is not required but is considered a bonus ; the provision of a data set will be appreciated)
-
Referring to this tutorial, add a Postman project (collections, variable if necessary) for simple testing of the API
- Don't forget to comment your code and to commit it to GitHub at each step in order to properly keep track of the changes you made (and why you made them)
- Please document any additional steps and operations required by changes and additions to the project in a separate
.md
document