Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gmagno/cra-template-app
A template of a dockerized CRA app for both development and production.
https://github.com/gmagno/cra-template-app
create-react-app docker docker-compose nginx
Last synced: 13 days ago
JSON representation
A template of a dockerized CRA app for both development and production.
- Host: GitHub
- URL: https://github.com/gmagno/cra-template-app
- Owner: gmagno
- License: mit
- Created: 2018-04-10T14:35:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-03T14:00:30.000Z (almost 7 years ago)
- Last Synced: 2025-01-05T16:12:19.941Z (about 1 month ago)
- Topics: create-react-app, docker, docker-compose, nginx
- Language: JavaScript
- Homepage:
- Size: 92.8 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Template App
A template of a dockerized CRA app with compose files for both development and production.
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
### Prerequisites
Both Docker and docker-compose should be installed beforehand.
### Installing
To start working on your new CRA app simply clone or download this repo:
```
git clone [email protected]:goncalo-godwitlabs/cra-template-app.git
cd react-template-app/
./build.sh
./up.sh
```After which your base CRA app should be continuously hosted on http://localhost:3000.
Any changes to the source code now should be hot reloaded.## Deployment
Both Dockerfile and docker-compose.yml files are included in this repo for production purposes. In order to host your app in production environment just run:
```
./build-prod.sh
./up-prod.sh
```and a nginx container is run with your CRA app on http://localhost:9000.
## Built With
* [Docker](https://github.com/docker/docker-ce) - for both node and nginx containers
* [Docker Compose](https://github.com/docker/compose) - To create both development and production environments.## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details