server.js for Node.js Powerful server for Node.js that just works so you can focus on your awesome project: // Include it and extract some methods for convenience const server = require('server'); const { get, post } = server.router; // Launch server with options and a couple of routes server({ port: 8080 }, [ get('/', ctx => 'Hello world'), post('/', ctx => { console.log(ctx.data); return 'ok'; }
![Server.js](https://cdn-ak-scissors.b.st-hatena.com/image/square/331e19579eba66d121f2dced639ae8dc1b6bc102/height=288;version=1;width=512/https%3A%2F%2Fserverjs.io%2Fimg%2Fcode.png)