Getting Started

Getting started using the Octoris Node HTTP Framework

Installation

You can install Octoris via npm with

$ npm i octoris

Core API

Octoris returns an object back which I like to consider the core api

{
  listen,
  methods,
  response,
  router,
  utils,
  debug
}

Full Usage Example

index.js
const { listen } = require('octoris')
const routes = require('./routes')

listen({ port: 3000 }, routes)
  .then(addr => console.log(`Server Listening on ${addr}`))
  .catch(console.error)

And now you have a very simple starting server to work with!

Last updated

Was this helpful?