Backend starter template
https://templates.borodutch.com
- TypeScript 96.3%
- JavaScript 3.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github | ||
| .vscode | ||
| .yarn | ||
| src | ||
| .env.sample | ||
| .eslintrc.js | ||
| .gitignore | ||
| .nvmrc | ||
| .yarnrc.yml | ||
| jest.config.js | ||
| LICENSE | ||
| nixpacks.toml | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| yarn.lock | ||
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
- Clone this repo:
git clone https://github.com/Borodutch/backend-starter - Launch the mongo database locally
- Create
.envwith the environment variables listed below - Run
yarnin the root folder - 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.