Set a fitness schedule from a Telegram WebApp for @OfficeGymBot.
- set training days of week and time 💪
- auto timezone detection 🗺️
- dark and light modes 🚥
- python bot to test the integration 🤖
- automated S3 deployment 🚀
- [build] npm
- [test] ngrok, python3.9
- [deployment] aws cli and credentials
make dev
make run
Review the app on localhost. Try to set a schedule and check the logs in the console. Selected days and time will be sent to a webhook upon clicking the "SAVE" button. When using from Telegram, clicking on the "SAVE" button also closes the window.
In order to test the app from Telegram, you need to run a bot locally and expose the app to the Internet.
- Install and activate python3.9 environment (conda or other).
- Install dependencies:
pip install -r requirements.txt
- Create a telegram bot from BotFather and get a token.
- Start the app locally
make run
and launch ngrok to expose the app on https:make ngrok
. - Run a test bot:
make bot
and enter required credentials and links.
Build a static website for distribution: make build
.
The app contents will be saved to the ./dist
folder and can be uploaded to any static file server.
- Create
.env
file withAWS_*
credentials as in.env.example
. - Upload dist files to S3:
make s3