Docker-izing a NodeJS ExpressJS API - Tutorial

Docker-izing a NodeJS ExpressJS API - Tutorial

TutorialEdge

6 лет назад

161,932 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@MSRahmanSD
@MSRahmanSD - 11.05.2023 19:40

Excellent! I was struggling with the setup since last few days. Just got it working after watching your videos. Super helpful. You just got a new subscriber from Germany :) Keep up your good work <3

Ответить
@nooutidev
@nooutidev - 13.02.2023 13:57

Straight forwards, thanks!

Ответить
@t3lls
@t3lls - 21.01.2023 10:38

Impressive typing speed 🔥

Ответить
@Zentamusic
@Zentamusic - 11.11.2022 15:25

Amazing, very simple video! love it

Ответить
@omarfouad5376
@omarfouad5376 - 11.11.2022 00:20

NICE!!!!!!

Ответить
@vedant6460
@vedant6460 - 07.11.2022 21:32

Thanks for this video !!!

Ответить
@vedant6460
@vedant6460 - 07.11.2022 21:32

Thanks for this video !!!

Ответить
@siva002
@siva002 - 24.10.2022 23:58

Good job

Ответить
@filipmoniuszko309
@filipmoniuszko309 - 04.10.2022 11:34

The -v does not work for me. I get a 'invalid reference format' when I use the $(pwd):/app command. but when I use /app, it works, but it does not recognise the changes I make.

Ответить
@sudeeprao619
@sudeeprao619 - 16.08.2022 09:01

Tried this in 2022 and it still works fine. Thank you :)

Ответить
@driveupload3393
@driveupload3393 - 08.08.2022 11:44

npm run install does not seem to work for me

Ответить
@omarh5877
@omarh5877 - 12.07.2022 23:29

Beside an amazing tutorial, you have a beautiful accent

Ответить
@jackdaisuki502
@jackdaisuki502 - 11.06.2022 04:06

this is what im finding of. 😊 Ty

Ответить
@anshshah974
@anshshah974 - 30.03.2022 14:20

docker run -it -p 9001:8080 -v $(pwd):/app node-docker
it shows error when i execute this command
/app/node_modules/update-notifier/index.js:58
} catch {
^

SyntaxError: Unexpected token {
at new Script (vm.js:51:7)
at createScript (vm.js:136:10)
at Object.runInThisContext (vm.js:197:10)
at Module._compile (internal/modules/cjs/loader.js:618:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
at Module.require (internal/modules/cjs/loader.js:598:17)
at require (internal/modules/cjs/helpers.js:11:18)

Ответить
@keshavkishorram7678
@keshavkishorram7678 - 02.02.2022 21:20

You're a really good teacher 👏👏

Ответить
@michaellesley2146
@michaellesley2146 - 22.12.2021 16:28

My nodemon don't work... do not have effects in my page...

Ответить
@MuffinologyTrainer
@MuffinologyTrainer - 05.12.2021 17:59

Take a shot each time he says "application".

Ответить
@blacktipe9922
@blacktipe9922 - 14.11.2021 11:54

You can also run npm init -y

Ответить
@maloukemallouke9735
@maloukemallouke9735 - 07.11.2021 16:28

Thak you for video. I m wondering why you install Node_modules in local host? it should be install one time in docker image and all local fils should be source files of your project and each time you modify your code the update will be automaticly happen in Bidrectionale way ?
Thank's for avance.

Ответить
@muhammadrafiuddin8319
@muhammadrafiuddin8319 - 07.08.2021 03:37

thank you man

Ответить
@olishiz
@olishiz - 29.07.2021 11:39

hey man, why am i getting
failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 6: unknown instruction: CMD["NPM",

on line 6 after running docker build?

Ответить
@anuragchoudhary4138
@anuragchoudhary4138 - 08.07.2021 18:05

I just go a huge relief after watching your video. I thought that I will do it with myself, but I couldn't it. Only one step, WORKDIR /app. By the way, thanks for your video buddy!

Ответить
@RobertFitzgerald85
@RobertFitzgerald85 - 05.07.2021 12:10

Great tutorial, thanks!

Ответить
@vishal_sharma_rha
@vishal_sharma_rha - 19.06.2021 04:57

Really great tutorial thank you ❤️

Ответить
@ThePaulius
@ThePaulius - 16.06.2021 21:43

How about docker, for Wordpress dev using NodeJs (running in a container not on local machine) to compile sass, with gulp and browser sync. I’d let you marry my sister if I can clone a project that did all that.

Ответить
@MrThomasgies
@MrThomasgies - 25.05.2021 18:15

I ran into some issues. I don't want to push the node_modules folder into Source Controll. And if another developer pull the repo from Source Control and just starts developing by building the image via the Dockerfile and then spinning up a container with this images with the same volumes mapped, he will be missing the node_modules folder in the container since it is not available in the working copy of the repo that is beeing mounted over the /app directory. To remedie this, i put all the sources in its own subdirectory of the project and mount only this into the container.

Ответить
@mohammadanas3320
@mohammadanas3320 - 23.04.2021 07:58

Didn’t work for me.....had to use -L after nodemon.....Thanks anyways.... Short helpful video

Ответить
@pedroluiz8019
@pedroluiz8019 - 02.04.2021 00:03

Amazing content, very brief and to the point (something that is rare with some content creators!). Yet I have one question, while I get why you would want to that I can't help but feel like the command to run the dev is a little cryptic, there is a standard way to save this configuration so if somebody is just getting on the project knows how to run the container? Thank you for the video.

Ответить
@TheAppAlchemist
@TheAppAlchemist - 07.03.2021 19:30

Excellent, massive Value

Ответить
@yznaiber7598
@yznaiber7598 - 21.02.2021 14:28

Amazing accent! The way you say "file" LOL! Great video.

Ответить
@Levelord92
@Levelord92 - 10.02.2021 23:20

As far as I know you could install nodemon with --save-dev flag, bro ;)

Ответить
@mduddin9523
@mduddin9523 - 27.01.2021 20:40

awesome tutorial

Ответить
@johnkucharsky6927
@johnkucharsky6927 - 27.01.2021 09:17

It's bullshit, it's not app. You can deploy that kind of project any where easy. Problems beginning when project become bigger with many dependencies, routes, database

Ответить
@aram5642
@aram5642 - 11.01.2021 22:22

Just curious: (a) why does it work without EXPOSE 3000 in Docekrfile (b) why is nodemon a production dependency and not dev, shouldn't it be installed globally in VM?

Ответить
@manit77
@manit77 - 03.01.2021 19:40

Why would you make node even slower?

Ответить
@umairyatoo8490
@umairyatoo8490 - 29.12.2020 14:21

superb

Ответить
@palimarcincin7693
@palimarcincin7693 - 17.12.2020 16:05

awesome tutorial, epic accent :D cheers

Ответить
@joseantoniosanchesgarcia9220
@joseantoniosanchesgarcia9220 - 12.12.2020 08:49

thanks bro, it works, i could deploy my api with mysql in my ubuntu server

Ответить
@BYAZIT
@BYAZIT - 22.11.2020 01:54

fresh and quick!

Ответить
@mohammedhuchpeer8013
@mohammedhuchpeer8013 - 20.11.2020 16:24

what is the font used for code I am looking for this font from a long time

Ответить
@tebogo10
@tebogo10 - 22.10.2020 01:37

Error response from daemon: Dockerfile parse error line 6: unknown instruction: CMD["NPM",
anyone with this error make sure theirs a space => CMD [ "npm", "start"]
dumb face xD

Ответить
@breakunknown
@breakunknown - 11.10.2020 00:03

Thanks a lot!!!

Ответить
@JhosefAndersonCardichPalma
@JhosefAndersonCardichPalma - 28.08.2020 13:08

Thank you very much! <3

Ответить
@MegaArti2000
@MegaArti2000 - 27.08.2020 17:46

Ok, but you supposed we had docker installed. I think you should've said it in the beggining.
Thx anyways

Ответить