Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/koajs/examples

Example Koa apps
https://github.com/koajs/examples

Last synced: about 2 months ago
JSON representation

Example Koa apps

Awesome Lists containing this project

README

        

# Koa Examples

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

# Running tests

```bash
npm test
npm run lint
```

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

- [coko](https://github.com/bhaskarmelkani/coko) - A minimal convention over configuration framework/boilerplate for Koa 2.
- [kails](https://github.com/embbnux/kails) - A Web App like Rails build with Koa v2, Webpack and Postgres
- [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
- [koajs-rest-skeleton](https://github.com/ria-com/node-koajs-rest-skeleton) - A simple Koa REST Skeleton Application
- [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
- [hacknical](https://github.com/ecmadao/hacknical) - A website for github user to make a better resume, based on Koa v2, redis and mongoose.
- [koa-vue-notes-api](https://github.com/johndatserakis/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](https://github.com/Talento90/typescript-node) - Template for building nodejs and typescript services. Features: MySql, Migrations, Docker, Unit & Integration Tests, JWT authentication, authorization, graceful shutdown, Prettier.

## 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
- [koa-typescript-starter](https://github.com/ddimaria/koa-typescript-starter) - A Koa2 starter kit using TypeScript, ES6 imports/exports, Travis, Coveralls, Jasmine, Chai, Istanbul/NYC, Lodash, Nodemon, Docker, & Swagger

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

## Articles

- [Building a RESTful API with Koa and Postgres](http://mherman.org/blog/2017/08/23/building-a-restful-api-with-koa-and-postgres)
- [User Authentication with Passport and Koa](http://mherman.org/blog/2018/01/02/user-authentication-with-passport-and-koa)