Example Koa apps
JavaScript HTML Makefile
Switch branches/tags
Nothing to show
Clone or download
zhuqingguang and coderhaoxin fixed a bug (#123)
You should use `ctx.request.files.file` to fetch the file in `request`
Latest commit 7378561 Jun 21, 2018
Permalink
Failed to load latest commit information.
404 Fix mocha version and unit tests (#117) Jan 24, 2018
base-auth Fix mocha version and unit tests (#117) Jan 24, 2018
blog Fix mocha version and unit tests (#117) Jan 24, 2018
body-parsing Fix mocha version and unit tests (#117) Jan 24, 2018
compose Fix mocha version and unit tests (#117) Jan 24, 2018
conditional-middleware migrate to koa@2 (#108) May 30, 2017
cookies Fix mocha version and unit tests (#117) Jan 24, 2018
csrf Fix mocha version and unit tests (#117) Jan 24, 2018
errors Fix mocha version and unit tests (#117) Jan 24, 2018
flash-messages Fix mocha version and unit tests (#117) Jan 24, 2018
hello-world Fix mocha version and unit tests (#117) Jan 24, 2018
multipart Fix mocha version and unit tests (#117) Jan 24, 2018
negotiation Fix mocha version and unit tests (#117) Jan 24, 2018
stream-file Fix mocha version and unit tests (#117) Jan 24, 2018
stream-objects Fix mocha version and unit tests (#117) Jan 24, 2018
stream-server-side-events migrate to koa@2 (#108) May 30, 2017
stream-view Fix mocha version and unit tests (#117) Jan 24, 2018
templates Fix mocha version and unit tests (#117) Jan 24, 2018
upload fixed a bug (#123) Jun 21, 2018
vhost Fix mocha version and unit tests (#117) Jan 24, 2018
.editorconfig Add .editorconfig (#92) Oct 18, 2016
.eslintrc.yml Use eslint-config-koa (#114) May 9, 2018
.gitignore README.md files for stream-* examples; added ";"; ignore Traceur tran… Mar 26, 2015
.jshintignore simplify multipart example, add some comments Dec 6, 2013
.travis.yml travis: test on node v8 Nov 9, 2017
Makefile Add eslint Oct 20, 2016
Readme.md Add typescript template Apr 19, 2018
package.json Use eslint-config-koa (#114) May 9, 2018

Readme.md

Koa Examples

A repository containing small examples to illustrate the use of Koa for creating web applications and other HTTP servers.

Running tests

make test
make lint

Included Examples

Example Repositories

  • coko - A minimal convention over configuration framework/boilerplate for Koa 2.
  • kails - A Web App like Rails build with Koa v2, Webpack and Postgres
  • muffin - A content management system build on top of Koa v2
  • links - experimental content sharing and collaboration platform
  • component-crawler - crawl users and organizations for repositories with component.jsons
  • bigpipe - Facebook's BigPipe implementation in koa and component
  • webcam-mjpeg-stream - stream JPEG snapshots from your Mac
  • cnpmjs.org - Private npm registry and web for Enterprise, base on koa, MySQL and Simple Store Service
  • blog-mongo - the blog example from this repo, but using a MongoDb database, and tests
  • koa-rest - A simple app to demo REST API
  • koajs-rest-skeleton - A simple Koa REST Skeleton Application
  • koa-bookshelf - Koa example with CRUD, using MongoDB and Heroku comptability
  • todo - A todo example written in koa and react
  • koa-skeleton - A simple made-to-be-forked Koa app that uses Postgres and deploys to Heroku.
  • nodejs-docs-samples - An example Koa app and tutorial for deploying to Google App Engine
  • koa-passport-mongoose-graphql - Koa 2 starterkit using mongoose, graphql setup, and authentication with passport
  • hacknical - A website for github user to make a better resume, based on Koa v2, redis and mongoose.
  • koa-vue-notes-api - A fleshed-out SPA using Koa 2.3 on the backend and Vue 2.4 on the frontend. Includes fully featured user-authentication components, CRUD actions for the user's notes, and async/await.
  • koa-typescript-node - Template for building nodejs and typescript services. Features: MySql, Migrations, Docker, Unit & Integration Tests, JWT authentication, authorization, graceful shutdown, Prettier.

Boilerplates

Yeoman Generators

  • koa-rest - RESTful API scaffolder with subgenerator
  • koa - Web Application scaffolder
  • k - Web Application scaffolder with Chinese README

Articles