Skip to content

tpiros/starwars-koa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example REST service using Koa

Only works with Node.js version higher than 0.11.3 (see blog post linked below to see how to setup multiple node versions)

To install: npm install

To start the app a special flag is required: node --harmony-generators ./app.js

The book collection used in the example is available in the sw.json file. The code assumes that the database name is starwars and the collection is books - henceforth to import the JSON file execute the following (alter if necessary):

mongoimport --db starwars --collection books --file sw.json

For futher information check: http://tamas.io/replacing-express-with-koa/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published