Node.js API From Scratch Using TypeScript, Express And MongoDB #1

preview_player
Показать описание

I hope this node js expressjs tutorial is helpful, let me know in the comments if you have any specific topics you want me to cover in a future video and if you need any help related to what we've done in this video.

Commands for installing packages:
npm i -D typescript tsc-watch eslint prettier eslint-config-prettier eslint-plugin-prettier @typescript-eslint/parser @typescript-eslint/eslint-plugin @types/node @types/express

npm i express dotenv

npm i module-alias

npm i mongoose compression cors morgan helmet

npm i -D @types/compression @types/cors @types/morgan

Timestamps:
00:00 Introduction
02:30 Setting Up The Project
13:30 Add ESLint and Prettier
17:43 Adding .gitignore and .env
21:10 Adding Module Aliases
22:44 Adding The Folder Structure
24:20 Writing The Framework Logic
54:15 Writing Our First Resource Logic (Controller, Model, Service, etc.)
1:28:45 Testing Our API
1:29:35 Outro
Рекомендации по теме
Комментарии
Автор

finally class based express and TS. Thanks man

kombolewis
Автор

The methods implemented in this project are strictly best practices. I recommend using it. Thanks for sharing.

favger
Автор

Could you please create a video tutorial on handling queue jobs for time-consuming processes, such as sending bulk emails or importing data from large Excel files? It would be really helpful to see a detailed walkthrough on setting up and managing these tasks efficiently.

Awais-qn
Автор

It was a great and useful tutorial. Please don't stop. Continue this kind of video, like a master child or more complex content! thank you for sharing with us such a nice tutorial.

mizanurrahmanmunna
Автор

Hello, great content 😮, please create more such a series on TS + Nodejs + Expressjs + Mongodb project topics if possible

pankaj_
Автор

Hi brother! Your style and the way you follow while building this app is really beneficial and informative. I hope you can post more videos just like that. Wish you the best

halitiince
Автор

I really appreciate the way you explained everything and wrote the code! However, I think the organization could be improved by structuring it more like Laravel, with separate folders for each component: controllers in a controllers folder, models in a models folder, model interfaces in models/interfaces, and so on. This way, you could also have folders for middlewares, exceptions, jobs, exports, helpers, requests, and routes. It would make the codebase cleaner and easier to navigate.

Awais-qn
Автор

This is what i'm looking for...great!!!!

alaingnepo
Автор

Thank you for this video, it's well presented and exactly what I was looking for.

Tip for any other newbies whose HTTP request hangs indefinitely - turns out I missed calling the next() callback in my validation middleware, so the service code never executed (and hence never moved onto anything that triggered a res() response to reply to the HTTP client).

dhillaz
Автор

Beautiful structuring and code style, thanks for the tutorial

amirhosseinbidokhti
Автор

this great! I don't see many express projects having oop structure like this. Hope nodejs and oop contents appear more.
Thank you so much

hung
Автор

this tutorial is so underrated.. keep up please!

silentgaming
Автор

Great video man its 10/10 what I needed so thanks for your help and I hope your channel grow.

cristopherdimitrov
Автор

wow awesome video! This is my 1st video and I instantly subscribed to your channel, man. Keep up and produce better and better video! 🔥

DioArsya
Автор

Thank god! This is what I was looking for! Thank you!

thydevdom
Автор

Hi Jason, your video is greatly helping me to get into web development, please keep it coming! I would be really happy if you could spare the time to answer two of my questions that came up while watching this video:
1. Can you explain why you are using async/await AND Promise<Response | void> in your controller file when it comes to handling the create method for instance. Is it best practice to define a return value here? And why exactly "<Response | void>"? Could I also use the Post interface as a response type here instead of "<Response | void>"?
2. This seems to be a really advanced approach, I wonder where I can find more information on MERN stack with OOP. Do you have any sources such as documentation or books that you could recommend?

HaikunWasTaken
Автор

Thank you bro for this amazing tutorial..

clipstube
Автор

Amazing video and amazing content.
Thank you!
Please keep it up.

niicolasolveira
Автор

It is a well structured, detailed video about Typescript. It helps me a lot. Brother kindly, if you enlighten about the product list, update and delete the product with image upload (normal or S3), it will be very beneficial. Waiting for your valuable response.

biswanathbose
Автор

Hello ! Could you please add swagger integration as well .Thanks for the video.

gowthamikuntamukkala