fast-track
v2.0.0
Published
Express web server setup
Downloads
6
Readme
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