Skip to content

google85/docker-react-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

[Docker] react dev environment

Steps:

  • developing container:

    mkdir -p project
    cd .docker/
    ./docker-build.sh
    ./docker-run.sh
  • and if everything is successful we are running inside container. At this time we can run basic creation of React app commands:

    cd project/
    npx create-react-app .
    
    npm i ....
  • [OPTIONAL] we can override env variables in an .env file:

    PORT=3000
    DOMAIN=localhost
    PUBLIC_URL=http://localhost:3000
  • starting project inside container:

    npm start

    ==> http://localhost:3000/

Enjoy!