Using Docker for Local Development in NodeJS projects

  Рет қаралды 7,966

Mohammad Faisal

Mohammad Faisal

Күн бұрын

This video shows how to use Docker for local development.
- How to set up a development docker file
- How to use docker-compose for local development
- Demonstrates hot reloading in the local environment for docker.
Github Repo:
github.com/Moh...
Article:
levelup.gitcon...

Пікірлер: 10
@anuragprakash7256
@anuragprakash7256 Ай бұрын
How can I use vs code JS debugger here ?
@norbzzz
@norbzzz 7 ай бұрын
Hi man. Thanks for the video. One issue I have is that if I don't have node module installed locally, it wont work. That's because of the volume overwriting the modules being installed by docker. If I remove the volumes instruction from the docker-compose file, command is working, but not hot reload. Any way to fix this, as having node mules installed locally isn't exactly the point of docker ? Hope I'm clear, pretty new to docker :)
@MohammadAApu
@MohammadAApu 4 ай бұрын
package.json missing when ran with latest version of docker, what is needed to fix this?
@Rejuyan-Ahmed
@Rejuyan-Ahmed 3 ай бұрын
good content.
@bmejia220
@bmejia220 11 ай бұрын
Brilliant man. You help me so much. This make my dev environment much easier. Thank you.
@ritishtimalsina
@ritishtimalsina 7 ай бұрын
If someone is getting the issue where nodemon does not reload after making changes, then change the script to start nodemon. Add '-L' to the nodemon script. E.g 'nodemon -L index.js'
@aleenshrestha8119
@aleenshrestha8119 10 ай бұрын
for debbuger
@thefellowbreather
@thefellowbreather Жыл бұрын
This is really helpful! Btw, should we include "node_modules" in .dockerignore file?
@davidfally5449
@davidfally5449 Жыл бұрын
Yes! The reason for this is that some dependencies might have native binaries built at download time and if the os/architecture is different to the one inside of docker (which it most likely will be) then things can break
@AndreW-kr1rt
@AndreW-kr1rt 2 жыл бұрын
☝️ 𝐩𝓻Ỗ𝓂Ø𝓈M
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Лайки Like
Рет қаралды 2,6 МЛН
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,8 МЛН
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 7 МЛН
If you're not developing with this, you're wasting your time
14:30
Articulated Robotics
Рет қаралды 293 М.
node_modules and Docker
10:30
WittCode
Рет қаралды 412
Create a local Laravel dev environment with Docker
14:48
Andrew Schmelyun
Рет қаралды 198 М.
Never install locally
5:45
Coderized
Рет қаралды 1,8 МЛН
How to build docker image for nodejs apps
28:47
Hitesh Choudhary
Рет қаралды 81 М.
How to create a great dev environment with Docker
29:55
Patrick Loeber
Рет қаралды 266 М.
Auto Restart/Rebuild with Docker Compose Watch
35:11
Kevin Wade
Рет қаралды 3,9 М.
Dockerize your Development Environment
12:26
Codú
Рет қаралды 79 М.
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Лайки Like
Рет қаралды 2,6 МЛН