Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 2.15 KB

README.md

File metadata and controls

39 lines (27 loc) · 2.15 KB

Frontend code for scalr telegram mini app

TODO: create a theme.ts file that integrates with tailwind.config.js and can be used inside the app

Updating .env variables

  1. Update .env.sample
  2. Update deployflow.yml
  3. Add env variables to environment variables here

Local launch

  1. Install dependencies with yarn
  2. Check .env.sample and create a .env file in project root
  3. Run the server with yarn start
  4. You can test in your browser, but you'll need a tg-bot

Testing inside Telegram with Hot Module Reload

  1. After running the server locally via yarn start, run yarn expose-dev, you'll see a temporary link in your terminal
    • It uses cloudflared, which may require installation, run yarn cloudflared bin install to get the latest version
  2. Setup a bot in a @BotFather, don't use Scalr when naming so it won't popup in a telegram search. Use the link from cloudflared
    • 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)
  3. Open the app in you mobile device and check if it works

Sentry integration

  1. In order for sentry to work you'll need a .env.sentry-build-plugin in project root with SENTRY_AUTH_TOKEN in it, you can get it here after you login to sentry
  2. Sourcemaps and versions are managed by sentry/vite-plugin

Backend

  1. Endpoints description