Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vaso991/koa-api-ts-starter

Koa2 Typescript API boilerplate
https://github.com/vaso991/koa-api-ts-starter

api boilerplate knexjs koa koa-router koa2 objectionjs pino swagger zod

Last synced: about 3 hours ago
JSON representation

Koa2 Typescript API boilerplate

Awesome Lists containing this project

README

        

# koa-ts-getting-started

## Create Project:

With NPM:

```
npm create koa-ts-api@latest app-name
```

With Yarn:

```
yarn create koa-ts-api app-name
```

With PNPM:

```
pnpm create koa-ts-api app-name
```

## Included packages

- [`Koa`](https://github.com/koajs/koa)
- [`koa-router`](https://github.com/ZijianHe/koa-router)
- [`Zod`](https://github.com/colinhacks/zod)
- [`objection + knex`](https://github.com/vincit/objection.js)
- [`pino-http`](https://github.com/pinojs/pino-http)
- [`koa-router-zod-swagger`](https://github.com/vaso991/koa-router-zod-swagger)
- [`jest`](https://github.com/facebook/jest) and [`supertest`](https://github.com/ladjs/supertest)

## Setup

```
git clone https://github.com/vaso991/koa-api-ts-starter.git
cd koa-api-ts-starter
yarn install
yarn run dev
```