Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.7 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.7 KB

Koa Modular

A basic example creating a Koa modular application + MongoDB.

Read the post here about this repository.

Quick start

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm start

Notes

  1. During the development, use: $ npm run dev

  2. backpack is used to watch and build the application, so you can use the latest ES6 features (module syntax, async/await, etc.).

Dependencies

  • koa-static - Koa static file serving middleware, wrapper for koa-send.
  • koa-bodyparser - A body parser for koa, base on co-body. support json, form and text type body.
  • koa-favicon - Koa middleware for serving a favicon. Based on serve-favicon.
  • koa-mount - Mount other Koa applications or middleware to a given pathname.
  • trie-router - Trie routing for Koa based on routington.
  • mongodb - The official MongoDB driver for Node.js. Provides a high-level API on top of mongodb-core that is meant for end users.
  • lodash - A modern JavaScript utility library delivering modularity, performance, & extras.
  • uuid - Simple, fast generation of RFC4122 UUIDS..
  • cross-env - Run scripts that set and use environment variables across platforms