-
Project structure
-
create mongodb atlas database
-
connect mongodb to backend (2nd commit)
-
dotenv settings
-
utils like: custom ApiError, ApiResponse, asyncHandler for database connection
-
handle CORS, data from JSON, URL, Cookies in express app
-
created USER & VIDEO model.
-
password hashing and matching using bcrypt
-
gen jwt access and refresh token
-
setup cloudinary for images & videos, util func
-
multer middleware for file handling
-
all setup kinda done
-
now write routes and controllers
-
register user controller
-
login user controller
-
logout user controller and jwtVerify middleware as req didn't have user, but had jwt, had to inject current user using jwt
-
more controllers. update user details, update avatar
dipankrr/yt-backend
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|