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!
- Clone this repo:
git clone https://github.com/backmeupplz/backend-starter
- Launch the mongo database locally
- Create
.env
with the environment variables listed below - Run
yarn install
in the root folder - Run
yarn develop
And you should be good to go! Feel free to fork and submit pull requests. Documentation is also available in this repo.
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 |
Also, please, consider looking at .env.sample
.
Any commit pushed to master gets deployed to backend.todorant.com via CI Ninja.