TODO: create a theme.ts
file that integrates with tailwind.config.js and can be used inside the app
- Update .env.sample
- Update deployflow.yml
- Add env variables to environment variables here
- Install dependencies with
yarn
- Check
.env.sample
and create a.env
file in project root - Run the server with
yarn start
- You can test in your browser, but you'll need a tg-bot
- After running the server locally via
yarn start
, runyarn expose-dev
, you'll see a temporary link in your terminal- It uses
cloudflared
, which may require installation, runyarn cloudflared bin install
to get the latest version
- It uses
- Setup a bot in a @BotFather, don't use
Scalr
when naming so it won't popup in a telegram search. Use the link fromcloudflared
- No, you don't need test telegram account, your primary account is better because you can use it on any device (test accounts are not supported by Android)
- Open the app in you mobile device and check if it works
- Can I use
ngrok
? - yes you can, but it will shut down in 3 hours, while you can keepcloudflared
alive for days - Can I host using vite? - I tried, it didn't work
- Article about testing the app on mobile in case something goes off
- How to debug (use devtools) in telegram mini apps
- In order for sentry to work you'll need a
.env.sentry-build-plugin
in project root withSENTRY_AUTH_TOKEN
in it, you can get it here after you login to sentry - Sourcemaps and versions are managed by sentry/vite-plugin