Skip to content

Latest commit

 

History

History

koa-es6

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

This is an example with koa and ES6 (babel).

npm install

# build client JavaScript codes.
npm run build

# run server
npm run serve

# call api in client side.
open http://localhost:3000 # then app.hello1(), app.hello2() in dev console.

# call api in server side.
open http://localhost:3000/hello/world