Skip to content
Joshua Williams edited this page Jan 2, 2021 · 1 revision

Silojs

Installation

Install as dependency.

npm install --save silojs

Install as package globally

npm i -g silojs

Getting Started

// index.js

const silo = require('silojs')
const port = 3000
// create instance of silojs
const app = silo();
// define catch all GET routes
app.get('/', (req, res) => res.send("Hello World"))
// run server on port 3000
app.listen(port, () => console.log(`SiloJs running on port ${port}`))

To run the application

silo start
Clone this wiki locally