Skip to content

AtomOpera/express_react_docker_container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

To run this project execute following commands in order

more info here: [https://sweetcode.io/how-to-deploy-react-js-and-node-js-dockerized-containers-to-kubernetes-cluster/](Deploy React.js and Node.js Dockerized)

cd server / cd client
yarn / yarn install
yarn dev / yarn start

Runs the app in the development mode.
Open server http://localhost:5000 to view it in the browser. Open client http://localhost:5173 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Docker commands

--name and --build are -name and -build in Mac/Linux ?

docker build -t server_img . docker build -t client_img .

use “docker images" command to see images in the local system

docker run -itd --rm --name server_container -p 5000:5000 server_img docker run -itd --rm --name client_container -p 5173:5173 client_img

to stop container: docker container stop server_container docker container stop client_container

Docker compose

docker-compose up --build

About

express_react_docker_container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published