
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 48-lesson course built from Sheryians Coding School's 8h 24m of YouTube video. 5 days at 90 minutes a day, with study notes and a quiz in every lesson. A 2-minute placement test skips what you already know.
Taught by Sheryians Coding School on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Install Node.js, verify installation, initialize an npm project, install the 'cattme' package, and run a basic script to see how packages work.
Learn how installed packages are stored in node_modules, how package.json tracks dependencies, and how package-lock.json maintains the full dependency tree.
Require Express, create a server instance, start it on port 3000, and program basic GET routes to respond with 'Hello World' and 'About Page'.
Understand request/response objects, port numbers, and separate server creation (app.js) from server startup (server.js) using a production-level folder structure.
Export the Express app instance from app.js, require it in server.js, and start the server with a callback confirming it's running.
Learn the four main REST methods: GET (fetch), POST (create), PATCH (update), DELETE (remove) and apply them to a Notes application.
Build POST, GET, and DELETE APIs using an in-memory array, understand status codes (201, 200), and handle dynamic route parameters (:id).
Use express.json middleware to parse incoming JSON request bodies so request.body becomes readable.
Create a PATCH API to update a specific note by ID using findOneAndUpdate, and test with Postman.
Realize in-memory data is lost on restart; introduce MongoDB as a persistent database solution and explain clusters, regions, and security layers.
Create a free M0 cluster in Mumbai, configure Network Access (Allow Anywhere), create a Database User with Atlas Admin role, and get the connection string.
Install mongoose package, create db.js with connectDB function using async/await, handle errors, export function, and call it from server.js.
Organize code: app.js creates server, server.js starts it, db.js handles DB connection, models folder holds schemas for each resource.
Define a Post schema with imageUrl (string) and caption (string), create a Mongoose model, and export it for CRUD operations.
Use multer middleware for file uploads, upload image buffer to ImageKit, save returned URL + caption to MongoDB via Post model, return 201 status.
Create GET /posts (find all) and GET /posts/:id (findOne) APIs, use populate to include artist details, and test with Postman.
Build DELETE /posts/:id (findByIdAndDelete) and PATCH /posts/:id (findByIdAndUpdate) APIs, requiring valid JWT token in cookies.
Create React app with React Router, build Feed page (list posts) and Create Post page (form with image upload), manage state with useState/useEffect.
Install axios, call backend APIs from React using useEffect, handle CORS errors by installing cors middleware on Express server.
Define the four pillars of auth: validation (format), verification (truth), authentication (identity), authorization (permissions).
Generate JWT secret, create token on register/login with user ID, store in httpOnly cookie, verify token in middleware using try/catch.
Create authArtist middleware to check token role === 'artist', return 403 if not; apply to create music/album routes to restrict access.
Extract token verification and role checking into reusable middleware (authUser, authArtist) to avoid code duplication in controllers.
Implement POST /albums (create with music IDs), GET /albums (list with select title/artist), GET /albums/:id (populate music & artist details).
Install jest and supertest, write test files under __tests__, test API status codes and response bodies, run tests with npm test.
Use express-validator middleware to validate required fields (username, email, password), check unique constraints, return 400 errors on failure.