fast-track

2.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i fast-track

Weekly Downloads

21

Version

2.0.0

License

MIT

Last publish

Collaborators

  • kev_nz