Тёмный

How to Dockerize NestJS with MySQL 

Anson the Developer
Подписаться 56 тыс.
Просмотров 13 тыс.
50% 1

Support the Channel:
Become a Member: www.youtube.co...
Become a Patreon: / stuyy
Buy me a Coffee: ko-fi.com/anson
Donate on Streamlabs: streamlabs.com...
Donate on PayPal: paypal.me/anso...
Connect with me:
Twitter: / ansonthedev
Discord: / discord
GitHub: github.com/stuyy
Twitch: / stuy

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

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@brunobragaw8t
@brunobragaw8t 6 месяцев назад
The explanation on mounting the /src finally made it clear for me on how to develop locally with Docker. Thanks a lot.
@jagadeeps3095
@jagadeeps3095 8 месяцев назад
the best dockerize video i have ever seen. Thank you so much Anson for this straight forward and clean explanation👍👍
@edwinchan8190
@edwinchan8190 3 месяца назад
Very clear and concise video on dockerizing nestjs app, thanks so much!
@amritniure465
@amritniure465 2 месяца назад
If anyone is facing the trouble " Error: Cannot find module '/usr/src/app/dist/main " . You can change the start:prod script in package.json to: "start:prod": "node dist/src/main", it is because the main file inside the container is inside the /usr/src/app/dist/src/main> I don't know the reason behind this. It must be something related to the tsconfig file. If you go check the files under the container the main file is in /usr/src/app/dist/src/main so, that works. Basically you need to provide the path of the main.js file of your container in your package.json file. If you try to build the application without docker ( in terminal ) after changing the path it won't work again because in dev environment the main file is inside the dist/ folder so hope you got the drill.
@bradpreston9872
@bradpreston9872 Месяц назад
Thank you! You saved me a good amount of debug time.
@_kenJ
@_kenJ 2 месяца назад
thaks bro, a wasnt understanding to much the volume of docker and a finally undestood this part of docker. And also i finally can code with docker
@ehSamurai3483
@ehSamurai3483 4 месяца назад
In docker compose you can add a dependency to mysql, so it will first start mysql before starting the nestjs server.
@dileepa-mn2to
@dileepa-mn2to 8 месяцев назад
can you create a video about e2e and unit testing in jest in nestjs covering all the aspects of testing. Thanks
@ansonthedev
@ansonthedev 8 месяцев назад
I have. Check my NestJS playlist. ru-vid.com/group/PL_cUvD4qzbkw-phjGK2qq0nQiG6gw1cKK
@FrankYupanquiAllcca
@FrankYupanquiAllcca 3 месяца назад
I got an "TypeError [ERR_STREAM_NULL_VALUES]: May not write null values to stream" at "npm i" instruction. How can I fix it?
@wisdomekpot7426
@wisdomekpot7426 Месяц назад
I love this tutorial.
@dr-Jonas-Birch
@dr-Jonas-Birch 8 месяцев назад
Excellent video. JB
@AdnanDev-su5no
@AdnanDev-su5no 8 месяцев назад
Hi Anson, could you show us what vscode extensions you are using for your projects ?
@bonchan4404
@bonchan4404 6 месяцев назад
hello anson . thanks for this video . im following your video but im having a problem on the hot reload on the tsconfig.json its not working . im using the latest typescript version on the dev dependencies
@ansonthedev
@ansonthedev 6 месяцев назад
I would double check the volumes and make sure they are mounted correctly. If you're on Windows make sure the watchOptions in the tsconfig is configured correctly... Here's a Stack Overflow link that may help - stackoverflow.com/questions/74815121/why-is-hot-reloading-not-working-in-my-nestjs-docker-compose-multistage-project
@bonchan4404
@bonchan4404 6 месяцев назад
@@ansonthedev thanks for this anson ! started watching all of your nest js videos because im starting to a new company and nest js is one of their stack ! . really love the way you teach to code its like watching traversy media . again thank you !
@codewithashok10
@codewithashok10 8 месяцев назад
Bro please make a video express js with typescript
@dileepa-mn2to
@dileepa-mn2to 8 месяцев назад
Thank you brother. Love this
@Daker11Gamer
@Daker11Gamer 6 месяцев назад
WOW! Super underated video this gotta have a million views this is gold!
@Songpon-wc2ob
@Songpon-wc2ob 23 дня назад
thank
@kellslte
@kellslte 8 месяцев назад
I love this tutorial. So straight to the point! Thank you! 🎉
@ferrywijaya6404
@ferrywijaya6404 8 месяцев назад
hello sir thanks for the video again may i request a real world example using nestjs as backend and angular as front end. thanks you before
@NeerajTangariya-o7b
@NeerajTangariya-o7b 8 месяцев назад
Hi I have one question how can i check the databasemeans table and all?
@Bregylais
@Bregylais 4 месяца назад
Beautifully explained, thank you.
@juanmacias5922
@juanmacias5922 8 месяцев назад
Thank you so much for another solid tutorial Anson. I was toying with the idea of looking into Docker.
@davidkhvedelidze6536
@davidkhvedelidze6536 4 месяца назад
greate totorial ! thanks
@jagajaga6908
@jagajaga6908 5 месяцев назад
thank you bro, very nice tutorial!!!
@ansonthedev
@ansonthedev 5 месяцев назад
You're welcome!
@kumaramresh7905
@kumaramresh7905 7 месяцев назад
I am getting Error: Cannot find module '/src/nest/dist/main' my dockerfile FROM node:alpine WORKDIR /src/nest COPY package*.json . RUN npm install -g @nestjs/cli RUN npm install COPY . . EXPOSE 3000 CMD [ "npm","run","start:dev" ] docker-compose.yaml version: '2.24.3' services: server: container_name: server build: context: ./nest dockerfile: Dockerfile ports: - "3000:3000" volumes: - ./nest/src:/src/nest/src can anyone help me on this ?
@Максим-в3ф6о
@Максим-в3ф6о 6 месяцев назад
i got the same problem. Did you find the solution?
@kumaramresh7905
@kumaramresh7905 6 месяцев назад
​@@Максим-в3ф6о no !! What's the solution??
@gregoiremaria1078
@gregoiremaria1078 5 месяцев назад
FROM node:alpine WORKDIR /src/nest COPY package*.json . RUN npm install -g @nestjs/cli RUN npm install RUN npm run build // ==> missing COPY . . EXPOSE 3000 CMD [ "npm","run","start:dev" ]
@Salaralali
@Salaralali 2 месяца назад
just add src to your start:prod script in package.json, like this: "start:prod": "node dist/src/main"
Далее
NestJS Guards
28:35
Просмотров 4,8 тыс.
The intro to Docker I wish I had when I started
18:27
Просмотров 114 тыс.
Barno
00:22
Просмотров 658 тыс.
CORTE DE CABELO RADICAL
00:59
Просмотров 2 млн
Дикий Бармалей разозлил всех!
01:00
Being Competent With Coding Is More Fun
11:13
Просмотров 81 тыс.
Laravel vs Rails for Javascript developers
19:50
Просмотров 2,5 тыс.
Decouple your NestJS code with this technique!
11:37
Просмотров 38 тыс.
Getting started with Docker Compose
6:22
Просмотров 6 тыс.
I took the #1 Tech Exam and it was BRUTAL
18:28
Просмотров 1,2 млн
Using docker in unusual ways
12:58
Просмотров 450 тыс.
Never install locally
5:45
Просмотров 1,8 млн
I tried 8 different Postgres ORMs
9:46
Просмотров 413 тыс.