A todo Application Tech stacks : Nodejs, MongoDB, Express , Reactjs Features:
- Can sign up/ sign in
- add/update/remove todo
- can mark done todo
- view the existing todo
Folder structure:
- backend
- Frontend
Backend :
- initailization , npm init -y
- add express http server and routes
- add zod validation and types input
- connecting to database.
frontend:
- boilerplate : npm create vite@latest
- npm install , isntall dependencies
- create components; craeting states; solving cors issues;
- connecting frontend to the backend
Issue :
- any frontend can hit the backend
- didn't use useeffect hence infinite requests loops