This week's project was to use our new skills with Express and Mongodb to build an API which includes both GET request endpoints to return data and POST endpoints to create data. This API is then used for my ❤️ Happy Thought ❤️ project where users can post their thoughts.
- How to build a registration flow
- How to handle authentication, both in the frontend and in the backend
- How to build a frontend and backend at the same time
- GET '/': returns the list of all endpoints;
- GET '/thoughts': returns a list of all;
- POST '/thoughts': posts for message, username and hashtag;
- POST '/'/thoughts/:thoughtId/like': posts for likes;