Dockerize Your Full-Stack App | ~Easy to follow
Vložit
- čas přidán 2. 08. 2022
- #coding #Docker #reactjs
Today we have a M.E.R.N. app that we're going to Dockerize. This will allow us to separate api calls and move towards load balancing.
Venmo Me a cup of coffee:
@CodingWithKevin
My Equipment
🎥My Camera: amzn.to/3fS1hqY
📟My Computer: amzn.to/3uUEsHA
💻My Monitor: amzn.to/3poLB1w
🎤My Mic: amzn.to/3ilZOuW
⌨️My Keyboard: amzn.to/3x0zSZG
Webull for Stocks / Crypto
📈 Deposit $100, get 2 free stocks! act.webull.com/in/2qmNyrkgX4M...
Health:
💪 Protein supplement www.gainful.com/r/w38fph - Jak na to + styl
Is it possible to get all the files you have typed
Dude @Coding with Kevin , thanks for this video! For some reason, when I go to localhost:3050 , I just see the "Welcome to nginx!" screen. Please lmk if you can help me out, I'd really appreciate it. Thanks!
is there a way to set initialization mongo script?
that will setup an admin, strong password with SCRAM auth method
then some generic user with sufficient rights to administrate blog (a particular db)
and insert some pre-defined data on it
so db-container will boot up with all neccessary settings on board while stack will be deployed
this is a great question, I highly recommend you do your research and see what else is out there on the Internet. Unfortunately I am not sure. If you figure it out, please share the solution or outcome in the comments here in case other people of the same question.
Hey, thanks for sharing! Helps me a lot! Are you in audea?
You're very welcome, thank you for watching. I'm not in audea, but I hope it's nice there 🎉
This tutorial is amazing! I have a much better idea of dockerizing full stack apps now. However, I followed you & removed the node modules before moving the required files to the client folder. Thereafter, I tried npm i inside the client folder, but it keeps throwing me a bunch of errors like -
code EJSONPARSE
npm ERR! path
npm ERR! JSON.parse Unexpected token "/" (0x2F) in JSON at position 4 while parsing near "{
// \"proxy\": \"..."
npm ERR! JSON.parse Failed to parse JSON data.
npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.
Can you please help me resolve this issue? Thanks!
Hey thank you so much for watching! I really appreciate your feedback. There can be a few reasons this error happens. You might not have npm installed globally, or something else. My best recommendation is to paste some of the error message in google, and then find something on stackoverflow that closely resembles the issue you're having.
Have you tried that? If you find a solution, please share it here for anyone else who might run into this :)