# koa-examples **Repository Path**: usejavascript/koa-examples ## Basic Information - **Project Name**: koa-examples - **Description**: Example Koa apps - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-09-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Koa Examples A repository containing small examples to illustrate the use of Koa for creating web applications and other HTTP servers. ## Included Examples - [404](404) - 404 handling - [base-auth](base-auth) - middleware base auth example - [blog](blog) - multi-route & view rendering - [body-parsing](body-parsing) - request body parsing - [compose](compose) - compose middlewares example - [conditional-middleware](conditional-middleware) - shows how middleware may be conditionally applied - [cookies](cookies) - cookie usage example - [csrf](csrf) - middleware csrf example - [errors](errors) - error handling & propagation - [flash-messages](flash-messages) - flash example - [hello-world](hello-world) - hello world application - [multipart](multipart) - multipart example downloading files using co-busboy - [negotiation](negotiation) - negotiation usage example - [stream-file](stream-file) - simple file streaming - [stream-objects](stream-objects) - objects streaming - [stream-server-side-events](stream-server-side-events) - server side events streaming - [stream-view](stream-view) - view streaming - [templates](templates) - simple view rendering - [upload](upload) - multi-file uploading - [vhost](vhost) - virtual host example ## Example Repositories - [muffin](https://github.com/muffinjs/server) - A content management system build on top of Koa v2 - [links](https://github.com/juliangruber/links) - experimental content sharing and collaboration platform - [component-crawler](https://github.com/component/crawler.js) - crawl users and organizations for repositories with `component.json`s - [bigpipe](https://github.com/jonathanong/bigpipe-example) - Facebook's BigPipe implementation in koa and component - [webcam-mjpeg-stream](https://github.com/jonathanong/webcam-mjpeg-stream) - stream JPEG snapshots from your Mac - [cnpmjs.org](https://github.com/cnpm/cnpmjs.org) - Private npm registry and web for Enterprise, base on koa, MySQL and Simple Store Service - [blog-mongo](https://github.com/marcusoftnet/koablog-mongo) - the blog example from this repo, but using a MongoDb database, and tests - [koa-rest](https://github.com/hemanth/koa-rest) - A simple app to demo REST API - [koa-bookshelf](https://github.com/Tomsqualm/koa-bookshelf) - Koa example with CRUD, using MongoDB and Heroku comptability - [todo](https://github.com/koajs/todo) - A todo example written in koa and [react](http://facebook.github.io/react/) - [koa-skeleton](https://github.com/danneu/koa-skeleton) - A simple made-to-be-forked Koa app that uses Postgres and deploys to Heroku. - Live demo: - [nodejs-docs-samples](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/appengine/koa) - An example Koa app and tutorial for deploying to Google App Engine - Live demo: - [koa-passport-mongoose-graphql](https://github.com/sibeliusseraphini/koa-passport-mongoose-graphql) - Koa 2 starterkit using mongoose, graphql setup, and authentication with passport ## Boilerplates - [koa2-boilerplate](https://github.com/geekplux/koa2-boilerplate) - A minimal boilerplate of koa v2 development - [api-boilerplate](https://github.com/koajs/api-boilerplate) - API application boilerplate - [component-koa-et-al-boilerplate](https://github.com/sunewt/component-koa-et-al-boilerplate) - Server/client boilerplate with component, livereload, and more ## Yeoman Generators - [koa-rest](https://github.com/PatrickWolleb/generator-koa-rest) - RESTful API scaffolder with subgenerator - [koa](https://github.com/peter-vilja/generator-koa) - Web Application scaffolder - [k](https://github.com/minghe/generator-k) - Web Application scaffolder with Chinese README