This package has been deprecated

Author message:

This package is not maintained. Please use @nullabyte/server-hotplate instead

express-hotplate

1.0.4 • Public • Published

Version License Author

Express Hotplate

An express boilerplate module, because I don't want to copy my boilerplate around everywhere

Installation

It's just a basic npm package, install it like any other npm package

npm i express-hotplate

Usage

Here's an example of a complete/typical options setup using all the available utilities. When an option is not included, the utility simply won't be used.

'use strict';
const path = require("path");
const {app, server} = require("express-hotplate")({
  morgan: {
    console: true,
    log: true
  },
  helmet: true,
  cookies: {},
  body: true,
  proxy: true,
  static: path.join(__dirname, "static"),
  session: {
    secret: ["this is a very secure cookie secret"],
    resave: false,
    saveUninitialized: true,
    cookie: {},
    url: "mongodb://localhost/test-session-store"
  },
  view: "pug",
  http: { port: 80 }
});

app.get("/", (req, res)=>{
  res.send("Hello");
});

Dependencies (9)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i express-hotplate

    Weekly Downloads

    0

    Version

    1.0.4

    License

    LGPL-3.0

    Unpacked Size

    13 kB

    Total Files

    5

    Last publish

    Collaborators

    • bilfr3d