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

https://github.com/leisn/koa-sample

Sample project for koa. Include routes, static file server, subdomain, and simple simple error handler.
https://github.com/leisn/koa-sample

koa koajs nodejs sample

Last synced: about 1 month ago
JSON representation

Sample project for koa. Include routes, static file server, subdomain, and simple simple error handler.

Awesome Lists containing this project

README

          

# koa-sample
Sample project for [koa](https://github.com/koajs/koa). Include routes, static file server, subdomain, and simple error handler.

[koa middleware list](https://github.com/koajs/koa/wiki#middleware)...

## Installation

```
$ git clone https://github.com/leisn/koa-sample
$ cd koa-sample
$ npm install
$ npm start
```
## Tests
Click to test.

* http://localhost:3000
* http://www.localhost:3000
* http://user.localhost:3000
* http://user.localhost:3000/login
* http://user.localhost:3000/logout