ellie

A simple server framework entirely based on next gen JavaScript

Usage no npm install needed!

<script type="module">
  import ellie from 'https://cdn.skypack.dev/ellie';
</script>

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