Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/indreklasn/my-react-docker-app
Here’s How You Can Use Docker With React
https://github.com/indreklasn/my-react-docker-app
docker docker-compose javascript react
Last synced: about 1 month ago
JSON representation
Here’s How You Can Use Docker With React
- Host: GitHub
- URL: https://github.com/indreklasn/my-react-docker-app
- Owner: indreklasn
- Created: 2020-07-14T14:23:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T22:30:41.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T08:46:40.666Z (over 1 year ago)
- Topics: docker, docker-compose, javascript, react
- Language: JavaScript
- Homepage: https://medium.com/@indreklasn/heres-how-you-can-use-docker-with-create-react-app-3ee3a972b04e
- Size: 3.93 MB
- Stars: 7
- Watchers: 1
- Forks: 5
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
my-react-docker-app is being sponsored by the following tool; please help to support us by taking a look and signing up to a free trial
_____
Here’s How You Can Use Docker With React
This article explains how you can combine a Docker and React application
https://medium.com/@indreklasn/heres-how-you-can-use-docker-with-create-react-app-3ee3a972b04e
![](https://miro.medium.com/max/1400/1*ovRuAuqPf4r2xpiWh71rUg.png)
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `yarn start`
Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.The page will reload if you make edits.
You will also see any lint errors in the console.### `yarn test`
Launches the test runner in the interactive watch mode.
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.### `yarn build`
Builds the app for production to the `build` folder.
It correctly bundles React in production mode and optimizes the build for the best performance.The build is minified and the filenames include the hashes.
Your app is ready to be deployed!See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `yarn eject`
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
### Analyzing the Bundle Size
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
### Making a Progressive Web App
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
### Advanced Configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
### Deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
### `yarn build` fails to minify
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify