/docker-reactjs

Docker boilerplate to start coding in React JS in just one command

Primary LanguageShell

Run the environment

Just run:

  • $ docker-compose up

And wait until you see the following in the console:

reactjs    | Starting the development server...
reactjs    |
reactjs    | Compiled successfully!
reactjs    |
reactjs    | You can now view code in the browser.
reactjs    |
reactjs    |   Local:            http://localhost:3000/
reactjs    |   On Your Network:  http://172.30.0.2:3000/
reactjs    |
reactjs    | Note that the development build is not optimized.
reactjs    | To create a production build, use yarn build.

Track files with git

  • Please track on the repository the files inside code/ directory. Those files are created after the first run.

Check the environment

If you need, enter the container by running

  • $ docker-compose exec reactjs bash