Develop a restful api that will be used to monitor a users daily meals while keeping track of the macros. It will implement a token authentication system to verify the request and use mongodb to store the data.
- Set up and use authenticated calls
- Use ENV variables to set up config logics
- Fix issue with the copy file path to not include node_module folders (Dockerfile issue)
- Seeded Database
- Create Automated Test Cases [Find a framework to use]
- Test Endpoints (functional)
- Test Database connection (functional)
- Test Relations (unit)
- Test new npm packages being used (integration)
Request | URI | Action |
---|---|---|
GET | /days | List all days |
GET | /days/{id} | List a day |
PUT | /days/{id} | Update a day |
POST | /days/user/{id} | List all days by a user |
Request | URI | Action |
---|---|---|
GET | /meals | List all meals |
GET | /meals/{id} | List a meal |
PUT | /meals/{id} | Update a meal |
POST | /meals | Create a meal |
Request | URI | Action |
---|---|---|
GET | /users | List all users |
GET | /users/{id} | List a user |
PUT | /users/{id} | Update a username |
POST | /users | Create a user |