The explanation on mounting the /src finally made it clear for me on how to develop locally with Docker. Thanks a lot.
@Palonchi-n1tАй бұрын
I was struggling to understand the actual responsibility of the docker, how to use it and so on... but now, I think I am in love with docker. Thank you very much!!!!
@mohammadpartovi181322 күн бұрын
Thanks a lot Anson. You have an extra ordinary talent in teaching and explaining topics. Keep up the amazing work and looking forward to seeing more of your content. Cheers.
@jagadeeps309510 ай бұрын
the best dockerize video i have ever seen. Thank you so much Anson for this straight forward and clean explanation👍👍
@Daker11Gamer8 ай бұрын
WOW! Super underated video this gotta have a million views this is gold!
@kellslte10 ай бұрын
I love this tutorial. So straight to the point! Thank you! 🎉
@juanmacias592210 ай бұрын
Thank you so much for another solid tutorial Anson. I was toying with the idea of looking into Docker.
@dileepa-mn2to10 ай бұрын
Thank you brother. Love this
@edwinchan81905 ай бұрын
Very clear and concise video on dockerizing nestjs app, thanks so much!
@dr-Jonas-Birch10 ай бұрын
Excellent video. JB
@amritniure4654 ай бұрын
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.
@bradpreston98723 ай бұрын
Thank you! You saved me a good amount of debug time.
@Bregylais6 ай бұрын
Beautifully explained, thank you.
@_kenJ4 ай бұрын
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
@ehSamurai34836 ай бұрын
In docker compose you can add a dependency to mysql, so it will first start mysql before starting the nestjs server.
@ansara47294 күн бұрын
thanks a million, awesome explanation
@tavindersingh818527 күн бұрын
Whats the difference in RUN and CMD command? if command like this `RUN npm run build` is possible then why added `CMD [ "npm", "run", "start:prod" ]` why not `RUN npm run start:prod`?
@dileepa-mn2to10 ай бұрын
can you create a video about e2e and unit testing in jest in nestjs covering all the aspects of testing. Thanks
@ansonthedev10 ай бұрын
I have. Check my NestJS playlist. kzbin.info/aero/PL_cUvD4qzbkw-phjGK2qq0nQiG6gw1cKK
@AdnanDev-su5no10 ай бұрын
Hi Anson, could you show us what vscode extensions you are using for your projects ?
@bbrother9225 күн бұрын
Is NestJS popular? Does heavy load services use NestJS ?
@FrankYupanquiAllcca5 ай бұрын
I got an "TypeError [ERR_STREAM_NULL_VALUES]: May not write null values to stream" at "npm i" instruction. How can I fix it?
@wisdomekpot74263 ай бұрын
I love this tutorial.
@NeerajTangariya-o7b10 ай бұрын
Hi I have one question how can i check the databasemeans table and all?
@jagajaga69087 ай бұрын
thank you bro, very nice tutorial!!!
@ansonthedev7 ай бұрын
You're welcome!
@ferrywijaya640410 ай бұрын
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
@davidkhvedelidze65366 ай бұрын
greate totorial ! thanks
@Songpon-wc2ob2 ай бұрын
thank
@bonchan44048 ай бұрын
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
@ansonthedev8 ай бұрын
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
@bonchan44048 ай бұрын
@@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 !
@codewithashok1010 ай бұрын
Bro please make a video express js with typescript
@kumaramresh79059 ай бұрын
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о8 ай бұрын
i got the same problem. Did you find the solution?
@kumaramresh79058 ай бұрын
@@Максим-в3ф6о no !! What's the solution??
@gregoiremaria10787 ай бұрын
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" ]
@Salaralali4 ай бұрын
just add src to your start:prod script in package.json, like this: "start:prod": "node dist/src/main"