Skip to content

Website of mobile app: Work & Rest flexible pomodoro timer, using react bootstrap

License

Notifications You must be signed in to change notification settings

Romancha/work-rest-pomodoro-site

Repository files navigation

Work & Rest - Flexible Pomodoro Timer: App Website

Alt text

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.

Local developing

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.

Build & Deploy

It was convenient for me to run the application in docker.
So 'build and deploy' based on docker deployment.

Build

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.

Deploy

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

⚠️ Docker deployment folder contains 'Work & Rest' project specific configs, like:


Also, you can deploy react app as you want. See the section about deployment for more information.

Result

One-command docker-compose -f wr-site.yml up -d site deployment with auto-renewal certificate.

Learn More About React App

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.