fast-track
Express web server setup
Last updated 3 years ago by kev_nz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fast-track 
SYNC missed versions from official npm registry.

fast-track

Setup an express app fast

install

npm install fast-track express xtconf --save

This installs fast-track and it's peer dependencies

Usage

const app = require('fast-track');
// load any routes or middleware you want
const notFoundHandler = require('fast-track/not-found-handler');
const errorHandler = require('fast-track/error-handler')(console.error); 
// can pass error logging function instead
app.use(notFoundHandler);
app.use(errorHandler);
var http = require('http');
var port = 3232;
app.set('port', port);
const server = http.createServer(app);
server.listen(port);

Info

fast-track uses xtconf to read config files when installed generates the initial config. The template system used is ejs

Current Tags

  • 2.0.0                                ...           latest (3 years ago)

10 Versions

  • 2.0.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.2.3                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 2
Dependencies (8)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |