Skip to content

sumitarora/api-koa-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rangle Koa-starter

Installation:

npm install

Run the server in dev mode:

npm run dev

This watches server files and runs the ES6 source code directly using a require hook, for a convenient developer experience. This mode is not suitable for production.

Make API requests to http://localhost:3001

Run the server in prod mode:

npm run build
npm start

This transpiles the ES6 code to ES5 (in the dist folder) and runs it.

Make API requests to http://localhost:3001

Lint the code and Run the unit tests:

npm test

This will also analyze unit test code coverage info and output a report to ./coverage.

TODO:

  • Basic prodmode clustering with throng?
  • Basic auth endpoint for other starters to use?
    • with caveats - big blurb on session management
    • protected whoami?
  • Jasmine instead of mocha?
  • Better coverage numbers, tools.
  • Update rangle-starter CLI, README.

About

Starter for an API server using Koa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%