Backend starter template https://templates.borodutch.com
  • TypeScript 96.3%
  • JavaScript 3.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nikita Kolmogorov da4335b8c4 Add funding links
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 15:24:56 -07:00
.github Add funding links 2026-10-08 15:24:56 -07:00
.vscode bump dependencies 2024-01-12 10:25:56 -08:00
.yarn bump dependencies 2024-05-30 11:16:47 -07:00
src remove test route 2024-01-12 23:06:51 +04:00
.env.sample bump dependencies 2022-03-28 09:25:17 -07:00
.eslintrc.js Add BWL eslint and prettier 2023-04-26 19:01:56 +03:00
.gitignore move to new yarn and tsc-watch 2021-11-22 17:24:36 -08:00
.nvmrc bump dependencies 2024-02-26 15:31:24 -08:00
.yarnrc.yml bump dependencies 2024-05-30 11:16:47 -07:00
jest.config.js rework tests 2021-03-11 01:31:58 +04:00
LICENSE bump dependencies 2023-11-06 10:42:57 -08:00
nixpacks.toml Update yarnPath and package dependencies 2024-02-03 16:58:12 -08:00
package.json bump dependencies 2024-05-30 11:16:47 -07:00
README.md up dependencies, change scripts, update readme 2022-06-09 09:46:50 -07:00
tsconfig.json Update TSconfig 2024-01-12 23:06:20 +04:00
yarn.lock bump dependencies 2024-05-30 11:16:47 -07:00

Backend starter code

This repository is to be used as a starter for Koa based Node.js applications written in TypeScript and using MongoDB. It includes a range of nice packages and configurations. It also has a stub for user login via Telegram, Facebook and Google. Enjoy!

Installation and local launch

  1. Clone this repo: git clone https://github.com/Borodutch/backend-starter
  2. Launch the mongo database locally
  3. Create .env with the environment variables listed below
  4. Run yarn in the root folder
  5. Run yarn start

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
FACEBOOK_APP_ID, FACEBOOK_APP_SECRET Facebook login credentials
TELEGRAM_LOGIN_TOKEN Telegram login bot
PORT Port to run server on (defaults to 1337)

Also, please, consider looking at .env.sample.