@dvcorg/websites-server

0.2.1 • Public • Published

Express Server

Example Usage on other project:

Create a server file eg: server.js

const server = require('@dvcorg/websites-server')

const app = server.app

// we can also extend to add further custom routes
app.get('/hello', (req, res) => {
  res.send('hello')
})

// run the server
server.run()

/@dvcorg/websites-server/

    Package Sidebar

    Install

    npm i @dvcorg/websites-server

    Weekly Downloads

    28

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    80.8 kB

    Total Files

    32

    Last publish

    Collaborators

    • jewels18
    • yathomasi
    • omesser
    • rmp-iterative
    • shcheklein