- clone the repo
- run
npm install
- run
cp .env.example .env
and replace the variables with your data - define your database schema in prisma/schema.prisma
- run
npm run prisma generate
to generate prisma client - run
npm run prisma db push
to sync database with schema - add your bot controllers in src/bot/controllers/ directory and register them inside src/bot/index.ts file
- add your web controllers in src/web/controllers/ directory and register them in src/web/index.ts
- run
npm run start:dev
to run the project and watch for changes to restart the server
- why grammy? it's just like telegraf but with awesome documentation and support.
- why prisma? awesome documentation, very easy to use, multi dialect, and great typing so why not?
- make sure you set the APPLICATION_BASE_URL environment variable to your domain which webhook will be set on that
- set NODE_ENV to production
- start the project
- fork the repo
- create a branch with the kebab-case name which describes what you working on
- apply your changes
- commit with conventional commits rules
- submit a PR