Skip to content

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

License

Notifications You must be signed in to change notification settings

luizalabs/koa-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-template

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 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-template

Run npm install or yarn install

Create your .env file

Run npm start or yarn run start

Env File

Create a .env file (in the root of the project) with the env variables

SENTRY_URL=someTokenYouAlreadyCreatedOnSentryPage@sentry.io/someNumber

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/

Shoud return just:

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

Example: http://localhost:3001/ping

Health Check shoud return just:

pong

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%