1.2.0 • Published 5 years ago

@touno-io/server v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@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™