@jcblw/mimas
v0.2.0
Published
a zero config server experiment
Downloads
3
Readme
Mimas
A moon of saturn 🌚 and a zero config server experiment.
The idea
Have a module build a server and require a directory to load all paths and middleware.
eg.
const {get} = require('@jsblw/mimas')
get('/', (req, res) => {
res.end('Hello Mimas')
})
I should just be able to throw this into my ./server
directory and mimas
should know how to run this.
To start this currently do.
node -r @jsblw/mimas index.js