Scttpr / boilerplate_koa_mongo

REST API Boilerplate based on TypeScript, KoaJS and MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boilerplate for TypeScript, KoaJS, MongoDB REST API

Setup

Everything related to scripts is in package.json, you just need to copy dist config to config.json, in terminal :

cp config.dist.json config.json 

Edit config if whished !

Current source tree

src
├── app.ts
├── config
│  ├── database.ts
│  └── index.ts
├── constants.ts
├── middlewares
│  ├── errorHandler.ts
│  └── throwAndLog.ts
├── models
│  ├── constants.ts
│  └── Example
│     ├── index.ts
│     ├── interface.ts
│     └── schema.ts
├── routes
│  └── index.ts
├── server.ts
└── tests
   ├── helpers
   │  ├── database.ts
   │  └── request.ts
   ├── models
   │  └── Example.test.ts
   └── routes
      └── index.test.ts

About

REST API Boilerplate based on TypeScript, KoaJS and MongoDB


Languages

Language:TypeScript 96.1%Language:JavaScript 3.9%