8000 GitHub - rudasn/docker-create-react-app: Use docker to create and maintain React apps created with create-react-app
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rudasn/docker-create-react-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-create-react-app

Use docker to create and develop React apps created with create-react-app.

So that nodejs is not required on your dev machine and the node_modules mess is avoided.

  • No need to worry about your local versions of nodejs/yarn
  • No need to worry about npm package versioning
  • Sets up node_modules folder with Docker for seamless development
  • Reproducible production builds
  • Non-opinionated, just the basics

Usage

  1. Clone this repo
  2. Run create
  3. Copy project/ folder to your own repo

  1. Install additional dependencies (optional)
cd project/

# dev dependencies
bin/darn add --exact --dev \
  node-sass@4.14.1 \
  prettier \
  serve

# app dependencies
bin/darn add --exact \
  @popperjs/core@2.9.2 \
  axios \
  bootstrap@5.0.1 \
  react-bootstrap \
  react-query \
  react-router-dom
  1. Start a development server
bin/darn start
  1. Create a production build
bin/parn build

The darn and parn commands are simple wrappers around docker-compose run that make it shorter to type yarn commands inside development and production containers.

About

Use docker to create and maintain React apps created with create-react-app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0