Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrapp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrapp

Express boilerpate

  • 0.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bootstrapp

Build Status Code Climate David DM

Express basic boilerplate. With an extra p

Install

npm install bootstrapp --save

Usage

var app = require("bootstrapp");
app.listen(1337, function() {
  console.log("listening...");
});

Set static

app.setStatic(__dirname+"/public");

Set views + engine

app.setViews(__dirname+"/views", "jade");

Define routes

app.setRoutes(function(app) {
  app.get("/", function(req, res) {
    res.send(200);
  });
});

Powered by MiddleEarth which allows you to pop in more middlewares into the stack.

Ex: body-parser

app.middlewares().before("routes", {
  name: 'body-parser',
  cb: bodyParser()
});

Current middleware stack:

// static, this is a noop, services as a starting point to add other middlewares
{name: "static",    fn: noop}
// erros to handle basic error handling
{name: "error-404", cb: erros.fouro4()}
{name: "error-end", cb: erros.handler({views: app.get("views")})}

License

MIT

Keywords

FAQs

Package last updated on 05 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc