See: pomodoro-timer.space
Work & Rest mobile application website created with React
, Bootstrap, TypeScript, based
on create-react-app.
Deployed as docker-compose, image contains react-site, nginx and certbot with auto-renewal cert.
Developing like a general react app.
Clone repository and run for install packages:
yarn
Runs the app in the development mode:
yarn run start
Open 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.
It was convenient for me to run the application in docker.
So 'build and deploy' based on docker deployment.
GitHub workflow actions ./github/docker-image.yml build final site docker image based on Dockerfile.
Image contains react app (copied to nginx site directory /var/www/wrpomodoro
), nginx + certbot with auto-renewal cert.
Docker image pushed to docker hub.
All you need to deploy site via docker located in docker folder.
wr-site.yml - docker compose file with site image tag
nginx-certbot.env - certbot config file. Please learn more about docker-nginx-certbot. Very recommend read Good to Know nginx-certbot docs before using image.
server.conf - nginx config
- image tag on wr-site.yml
- email on nginx-certbot.env
- server_name, path to site on nginx-certbot.env
Also, you can deploy react app as you want. See the section about deployment for more information.
One-command docker-compose -f wr-site.yml up -d
site deployment with auto-renewal certificate.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.