@touno-io/server

1.2.0 • Public • Published

@touno-io/server

Installation

npm i @touno-io/server
// or
yarn i @touno-io/server

sample

const serv = require('@touno.io/server')

serv.create('web.opensource').then(async app => {
  app.get('/test', serv.tracking(async (req, res) => {
    res.end('test')
  }))

  await app.start()
}).catch(ex => {
  console.log(ex)
  await serv.close()
  process.exit(1)
})

License

MIT © 2018 Touno™

/@touno-io/server/

    Package Sidebar

    Install

    npm i @touno-io/server

    Weekly Downloads

    1

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    6.58 kB

    Total Files

    6

    Last publish

    Collaborators

    • dvgamer