A basic example creating a Koa modular application + MongoDB.
Read the post here about this repository.
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm start
-
During the development, use:
$ npm run dev
-
backpack is used to watch and build the application, so you can use the latest ES6 features (module syntax, async/await, etc.).
- 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