Тёмный

Node.js Backend Project Setup with Typescript, ESLint, Prettier, and Jest 

CodeDunks
Подписаться 7 тыс.
Просмотров 31 тыс.
50% 1

Walkthrough of how I like to set up my Node.js backend projects. Configured with Typescript, ESLint, Prettier, Jest, Nodemon, environment variables, and debugging.
TSConfig Options: www.typescriptlang.org/tsconfig
ESLint Config Docs: eslint.org/docs/user-guide/co...
Prettier Options: prettier.io/docs/en/options.html
Project Github repo link: github.com/leoroese/blog-tube...
0:00 Intro & Initialize Project
6:25 Typescript Install
7:58 ESLint Install
13:19 Prettier Install
16:45 ESLint Config
24:39 Typescript Config
29:10 Testing Project Configurations
34:50 nodemon install and config
38:28 dotenv-safe install and config
41:40 Debugging
43:05 Jest install and config
49:30 Exclude tests from build
50:45 End

Наука

Опубликовано:

 

30 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 65   
@Scetils
@Scetils 3 года назад
This was such a solid first video Leo! Really appreciate it and can't wait to go through more. 🤺
@twiksify
@twiksify 2 года назад
I should put this on repeat just because you deserve a lot views. Very well structured and explained, top notch!
@ahmedswerky9700
@ahmedswerky9700 2 года назад
Such an awesome/comfortable environment, Hope to see more
@TobiAkinyemi-mq5mh
@TobiAkinyemi-mq5mh Год назад
👌, thank you for taking time to explain why you did something and a brief description on what it's actually doing .
@amazonreviews2524
@amazonreviews2524 2 года назад
This is amaze-balls! Thank you Leo. You helped me tremendously. :)
@ThijmenCodes
@ThijmenCodes 2 года назад
Great video, you really cover everything from A to Z. Thanks!
@serhiiocean2662
@serhiiocean2662 3 года назад
the best guide that I've found (not on youtube but in general) that covers everything that I needed! I literally spent a few hours reading some articles/watching videos but non of it was like this video, thanks!
@CodeDunks
@CodeDunks 3 года назад
Glad I was able to be of some help!
@HosseinBajan
@HosseinBajan 3 месяца назад
It was the best node environment that I have seen so far, it was really great, thank you
@sanjitselvan5348
@sanjitselvan5348 Год назад
The knowledge you've given us in this video is priceless. Thank you! 🙌
@varadharajmahendran
@varadharajmahendran Год назад
AQQ
@ashishkarki4880
@ashishkarki4880 3 года назад
greatly technical and useful video. Please keep them coming. thanks a lot
@goshmain982
@goshmain982 3 года назад
This is such informative and literary everything I needed.
@mealcode
@mealcode 2 года назад
thanks leo for this gold content. Keep going :)
@utsavojha2953
@utsavojha2953 2 года назад
Awesome walkthrough Leo, good stuff! 🚀 subscriber++
@jeremiahakpera3457
@jeremiahakpera3457 Год назад
This is exactly what I was looking for. Thank you
@hidden_from_you
@hidden_from_you 3 года назад
I am a front-end developer, but your tutorial very useful for me, great job thanks! Wishing for more than a million views!
@CodeDunks
@CodeDunks 3 года назад
Appreciate it Rinat!
@nishalgoud222
@nishalgoud222 3 года назад
awesome !.Please keep them coming.
@zero__gravity_Shekhawat777
@zero__gravity_Shekhawat777 2 года назад
Great work waiting for more videos
@leonardparan7291
@leonardparan7291 2 года назад
You're one of the best dude, thank you so much
@xc1726
@xc1726 2 года назад
i'm korean university student. Despite my poor English, your explanation was very helpful. Thank you !! 👍
@chinedumnwankwo5166
@chinedumnwankwo5166 2 года назад
Great video that covered almost what I needed. I would also like you to add API and database feature and testing with jest. Thumbs up Leo..
@DaumChannelGamePart
@DaumChannelGamePart 2 года назад
wow. this is the best practice ever!
@purchtechnologies3414
@purchtechnologies3414 3 месяца назад
This is solid. Thanks
@yashshah7673
@yashshah7673 Год назад
Too good Leo!! Thank you very much! :-)
@qianjinqin8293
@qianjinqin8293 2 года назад
Thank you, Leo.
@coadingwithdharma
@coadingwithdharma 3 года назад
NIce work, keep it up bro
@user-ep5yq8ek3e
@user-ep5yq8ek3e 2 года назад
great job
@miteshsagar8149
@miteshsagar8149 2 года назад
Awesome 👍😎
@user-sg4kw8uh3m
@user-sg4kw8uh3m 9 месяцев назад
awesome!
@kodingmania1787
@kodingmania1787 3 года назад
Thank you a lot ,, you are helpfully
@CodeDunks
@CodeDunks 3 года назад
Glad I could help!
@jackiedo2959
@jackiedo2959 2 года назад
Amazing walk through bro, thumbs up for this!!!! :)
@marioibarra668
@marioibarra668 2 года назад
Leo thanks for a great tutorial. It helps me a lot to understand the set-up. Just one small comment: you need to zoom out. Difficult to see what the names of the files. Thanks again.
@kolynzb
@kolynzb 2 года назад
Thanks bro
@mahendranath2504
@mahendranath2504 3 года назад
excellent, next time a small suggestion is to increase the font size on VS code editor as its small font hard to focus on your typing , it's a great content 👍
@CodeDunks
@CodeDunks 3 года назад
Yes I apologize, first video I thought for some reason you guys could see what I could. Won't be happening in my future videos. Thanks for the feedback!
@mahendranath2504
@mahendranath2504 3 года назад
@@CodeDunks no need for apologies, it happens, we learn from mistakes,you are doing a great job 👏👍
@muasx1985
@muasx1985 2 года назад
NICE! (with the capitals)
@jeremiahblessing3891
@jeremiahblessing3891 3 года назад
13:21 If you are not familiar with Prettier, that's me. LMAO XD
@scotty8789
@scotty8789 3 года назад
Great video! Learned a lot. Couple things not working for me though. Initially, the auto formatting wasnt working but I was able to fix it by setting prettier as my formatter and enabling format on save within the vscode settings. This seemed to work but when adding dotenv-safe I noticed it would not automatically move the import statement above my add function import. Any ideas why this could be? I followed all your steps exactly except for using npm instead of yarn and using json instead of js for eslintrc
@scotty8789
@scotty8789 3 года назад
Disabling prettier in vscode as a formatter and enabling eslint as default formatter seems to have fixed it. My code will autoformat with eslint and prettier settings on save. Is this the correct way to set these extensions in my vscode settings?
@CodeDunks
@CodeDunks 3 года назад
@@scotty8789 Hey Scott, so there are a couple of ways to mess with your vscode settings. Either how you did it, or you can play around with the settings.json file, you can find this file by doing CTRL + SHIFT + P and typing in settings, then choose open settings (JSON). Here is a link to my vscode settings I just added it up to by blog-tube repo github.com/leoroese/blog-tube/blob/main/settings.json Hope this helps
@scotty8789
@scotty8789 3 года назад
@@CodeDunks Thank you!
@christofernguyen6282
@christofernguyen6282 2 года назад
Hi, How did you setup the nvm on windows? Great video btw!
@CodeDunks
@CodeDunks 2 года назад
github.com/coreybutler/nvm-windows
@igdev6095
@igdev6095 2 года назад
Thanks for your video, it's very very helpful for me. But I have a problem, if I delete a file .ts in folder src then ts complier not auto remove it in folder dist. How can I fix that? Thank u so much!
@CodeDunks
@CodeDunks 2 года назад
Just to be sure I understand here, you want the associated deleted file not to be in the dist folder after deleting its source file automatically? Or After you run the build again? Automatically you could maybe look into www.npmjs.com/package/gulp. If build isn't removing them then I would try making your build script something like "build": "rm -rf dist && tsc"
@fooked1
@fooked1 Год назад
Thanks for the video. I noticed you added tsconfig-paths, but I don't think you covered what it does or how to use it. Can you describe what value it brings into the configs you setup?
@ThangTran-fe5oz
@ThangTran-fe5oz 2 года назад
You can help me? import app from '@src/config/express'; Unable to resolve path to module '@src/config/express'
@Confusedcapybara8772
@Confusedcapybara8772 2 года назад
leo, can you share your bashrc? How did you get the git branch names?
@michrisoft
@michrisoft Год назад
Pretty sure that's just from using the git bash shell
@shiroclown6131
@shiroclown6131 2 года назад
Appreciate this but 720p is just not clear enough. Maybe increase the fonts size?
@kadeinvictus1759
@kadeinvictus1759 2 года назад
34:23 start: prod uses the "ts-node" and "tsconfig-paths" modules, so in a production environment these modules must be in production dependencies and not in development, right ?
@CodeDunks
@CodeDunks 2 года назад
ts-node and tsconfig-paths shouldn't be production dependencies. If you look at their docs they install them as dev dependencies. You are correct however if you were to try and take this exact project and run it in production and want to use the yarn start as I have configured. The reason for including those in the start was to fix the MODULE_NOT_FOUND issues for local development when trying to run the yarn start but you are right that it isn't necessarily optimized for production. You can look into this article to possibly improve the project from what I have wrote. bgxcode.com/posts/typescript/ts-absolute-import-paths/
@kadeinvictus1759
@kadeinvictus1759 2 года назад
@@CodeDunks thank you, I understood and I was able to implement the second method
@MrYassineSalhi
@MrYassineSalhi 2 года назад
How would you add react to this? Every time I try their seems to be clashes
@CodeDunks
@CodeDunks 2 года назад
Hmm this video was mostly focused for backend project setup while React is mostly for frontend.
@KunalMukherjee3701
@KunalMukherjee3701 Год назад
Record in 1080p
@dungam9402
@dungam9402 6 месяцев назад
only one thing to complain please zoom the screen bigger :'(
@y_thedreamer95
@y_thedreamer95 2 года назад
Didn't like the quality at 720p but there is no more videos about it so thanks anyway.
@talhaklaib4016
@talhaklaib4016 2 года назад
awesome, but please zoom in your screen a little bet
@sumitmajumder8003
@sumitmajumder8003 Год назад
fully rubish. code size is very littlebit. I don't see proper code
@CURIOSITYcapital
@CURIOSITYcapital Год назад
Ohhh shit windows. I can't code on windows too hard. Cmd is a crap. Linux is just better in my opinion
Далее
How To Use TypeScript With Express & Node
17:05
Просмотров 64 тыс.
Express JS with TypeScript - Setup, Examples, Testing
1:20:13
How to setup Nodejs Express with Typescript
28:20
Просмотров 17 тыс.
The Hidden Cost Of GraphQL And NodeJS
28:35
Просмотров 184 тыс.
ExpressJS - Jest & Unit Testing
39:12
Просмотров 23 тыс.
TypeScript Origins: The Documentary
1:21:36
Просмотров 274 тыс.
Что не так с Sharp? #sharp
0:55
Просмотров 133 тыс.
SSD с кулером и скоростью 1 ГБ/с
0:47