Skip to content

Super tiny web-server framework in Node.js

Notifications You must be signed in to change notification settings

kelpjs/kelp-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kelp-server

Super tiny web-server framework in Node.js

const { createServer } = require('kelp-server');

class Home {
  index() {
    return "hello world";
  }
}

const server = createServer({
  routes: [
    `get / => Home#index`
  ],
  middlewares: [],
  controllers: [Home],
  defaultErrorHandler: true,
});

server.listen(3000);

About

Super tiny web-server framework in Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%