-
Notifications
You must be signed in to change notification settings - Fork 1
home
Joshua Williams edited this page Jan 2, 2021
·
1 revision
Install as dependency.
npm install --save silojs
Install as package globally
npm i -g silojs
// 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