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.
- Host: GitHub
- URL: https://github.com/leisn/koa-sample
- Owner: leisn
- License: mit
- Created: 2020-06-03T10:37:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T11:16:53.000Z (about 6 years ago)
- Last Synced: 2025-01-29T23:14:38.591Z (over 1 year ago)
- Topics: koa, koajs, nodejs, sample
- Language: JavaScript
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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