Skip to content

A simple/clean Koa template with basic resources to start your koa api on top of typescript

License

Notifications You must be signed in to change notification settings

alanbueno/koa-typescript-template

Repository files navigation

koa-template typescript

A simple/clean Koa template with basic resources to start your koa api

koa-template is a basic Restful API template build on top of koa.js v2 framework.

Ready, set, go!

Download the dependencies, create your SentryProject on https://sentry.io/, and run, just like that!

Clone the repo: https://github.com/alanbueno/koa-typescript-template

Run npm install or yarn install

Set your .env variables

Run npm start or yarn run start

Env Variables

Set the env variables (optional**)

Usage

Once the app is ready n running, use any HTTP(s) client to make a request::

You can set port on config file, if not, default is 3001.

Example: http://localhost:3001/

Should return just:

{
  "version":"0.0.1",
  "uptime":9.567
}

Example: http://localhost:3001/ping

Health Check should return just:

pong

Example: http://localhost:3001/somePost

Post should return just:

{
    "first": "Test",
    "second": "Another test",
    "number": 1,
    "flag": true
}

About

A simple/clean Koa template with basic resources to start your koa api on top of typescript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published