Skip to content

edkongz/sunny

Repository files navigation

description
The server in serverless

Sunny Server

Getting Started

Requirements

  • node 6+

Installation

npm install @sunny-server/core

Hello world

Create a file called index.js

module.exports = {
    register: (server, options) => {
        server.route({
            method: "GET",
            path: "/",
            handler: (request, reply) => {
                reply("Everything is sunny!");
            }
        });
    }
}

To start the server

npx sunny start --plugins=index.js

Goto localhost:3000 and everything should be sunny!

About

Hapi inspired server framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published