Borodutch Club backend
- TypeScript 98%
- JavaScript 2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github | ||
| docs | ||
| src | ||
| .env.sample | ||
| .gitignore | ||
| .nvmrc | ||
| jest.config.js | ||
| LICENSE | ||
| nixpacks.toml | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| yarn.lock | ||
Borodutch Club backend
This is the code for the Borodutch Club backend.
Installation and local launch
- Clone this repo:
git clone https://github.com/backmeupplz/borodutch-club-backend - Launch the mongo database locally
- Create
.envwith the environment variables listed below - Run
yarnin the root folder - Run
yarn develop
And you should be good to go! Feel free to fork and submit pull requests.
Environment variables
| Name | Description |
|---|---|
MONGO |
URL of the mongo database |
JWT |
secret for JWT |
TELEGRAM_LOGIN_TOKEN |
Telegram login bot |
STRIPE_SECRET |
Stripe secret |
FRONTEND_URL |
URL of the frontend app |
STRIPE_PRICE |
Stripe price plan |
STRIPE_WEBHOOK_SECRET |
Stripe webhook secret |
TELEGRAM_GROUP |
ID of the Telegram group |
TELEGRAM_ADMIN |
ID of the Telegram admin user |
STRIPE_FREE_DISCOUNT |
ID of the free discount on Stripe |
Also, please, consider looking at .env.sample.
Continuous integration
Any commit pushed to main gets deployed to backend.club.borodutch.com via CI Ninja.