This is my learning of backend in web development
commit 1- started the project.
commit 2- done some project setup.
commit 3- added prittier config.
Note:- the above was the basic setup of the projects.
commit 4- connected db to the project. Used MongoDb database
things to remember:-
- always use try and catch to connect database
- always use async function to connect database.
- never provide the connection url in the code, make a seprate .env file store the url there and use that to fetch url
- try to keep your index.js or any other main file as short as possible.
commit 5- Learnt about the error class of node js and how to create our own response class
learned about some of the middlewares some standered practices
commit 5- Created user model and video model for the app and also learnt the use of bcrypt and jwt library and how to use them.