adds code


Hey there, people, this is TheSkinnyCoder! In this video, I'll guide you through the process of creating a fully-functioning REStful-API using NodeJS, Express and MongoDB Atlas, on which the client can perform the CRUD operations. CODE : https://github.com/theskinnycoder/RESTful-API ---------- LINKS FROM THE VIDEO : Docs about the 'mongoose connect' function : https://mongoosejs.com/docs/connections.html#options StackOverFlow answer about the 'qs' VS 'querystring' libraries : https://stackoverflow.com/a/45690436/10903613 ---------- DOWNLOAD LINKS : Visual Studio Code : https://code.visualstudio.com/ NodeJS : https://nodejs.org/en/download/package-manager yarn : https://classic.yarnpkg.com/en/docs/install ---------- TIMESTAMPS : 00:00:00 - WELCOME 00:00:16 - Pre-Requisites and Installations 00:01:50 - Initializing an empty npm package and tweaking package.json 00:04:15 - Basic Express Hello World App 00:07:35 - Adding 'nodemon' 00:09:30 - Adding NPM Scripts 00:10:12 - Introduce Environmental Variables and '.env' file 00:11:30 - Adding and configuring 'dotenv' and 'cross-env' packages 00:18:40 - Adding 'morgan' logger 00:20:56 - Exploring the Request and Response Objects 00:22:00 - Accessing URL/Request Parameters 00:23:30 - What are Express Middlewares? 00:24:39 - (1) MongoDB Atlas - Register/LogIn 00:26:05 - (2) MongoDB Atlas - Build a Cluster 00:27:30 - (3) MongoDB Atlas - Add IP to the Whitelist 00:28:49 - (4) MongoDB Atlas - Connect to your Express App 00:29:57 - (5 OPTIONAL) MongoDB Atlas - Create DataBase and Collection 00:31:00 - 'mongoose' and the 'connect' function 00:35:42 - Wrapping the Express App in an asynchronous IIFE 00:39:00 - Creating the 'ToDo' mongoose schema and model 00:43:26 - Introducing MVC 00:44:15 - Drawbacks of clumsy Express Routes 00:45:35 - Using the Express Router 00:47:40 - Route Forwarding/Slicing and Primary Route Hitter 00:51:30 - Splitting Routes and Controllers 00:52:38 - Finalizing the API routes 00:53:45 - (1) GET /api/todos/ 00:58:10 - Introducing 'REST Client' VSCode Extension 00:59:40 - (2) POST /api/todos/ 01:00:50 - Body-Parser and JSON middlewares 01:01:50 - Request Body 01:06:20 - Request Headers 01:09:48 - (3) GET /api/todos/:id/ 01:11:30 - Checking for FALSY values 01:15:34 - (4) DELETE /api/todos/:id/ 01:19:15 - ReVisiting Request Headers and Body 01:21:10 - (5) PATCH /api/todos/:id/ 01:28:00 - RECAP 01:29:20 - Adding 'node_modules/' and '*.env' to '.gitignore' 01:30:19 - BYE BYE ---------- Recorded using 'OBS Studio' | Edited on 'Audacity' and 'DaVinci Resolve' MIC : Fifine K669B Condensor #nodejs #express #mongodb
Previous Post Next Post