ellie
v0.2.1
Published
A simple server framework entirely based on next gen JavaScript
Downloads
2
Readme
ellie
Usage
Simple installation
> echo {} > package.json
> npm install --save ellie eliot
> touch index.js
Simple API
// index.js
import { pipe, serve } from 'ellie'
const HelloWorld = () => (request) => {
return (
<h1>Hello world, from {request.url}!</h1>
)
}
const pipeline = pipe(HelloWorld)
serve(pipeline)
.listen(8080)
.then(() => console.log('Listening to port 8080'))
Run instantly
> eliot index.js --jsx
Listening to port 8080