node package manager

trek

Trek

trek

Next generation full-stack JavaScript open source solution, based on Koa.

Gitter NPM version Build status Test coverage License Dependency status

Features

  • Fast HTTP router which smartly prioritize routes, powered by Router.
  • RESTful Routing, Rails Style, powered by RouteMapper.
  • Loads environment variables(.env) and configurations(js|json|toml|yml) automagically
  • Using Babel for writing next generation JavaScript, ES6+
  • Working with Node.js v4
  • MVC

Usage

import Trek from 'trek';
 
const app = new Trek;
 
app.get('/', function* (next) {
  this.body = 'Hello World';
});
 
app.run(3000);

Installation

$ npm i trek

Or use trek-cli to generate a trek app.

$ npm i trek-cli -g
$ trek new trekapp
$ cd trekapp
$ npm i && npm start

Quick Start

Example Trek apps

Todo List

  • ...

License

MIT