Srver is a simple server with tools to create APIs
You will have to install the srver
package: npm install srver
. Then:
import { Server } from 'srver';
const server = new Server();
await server.start();
Without any configuration this server already has:
- Initialized in the 8000 port
- /health endpoint
- 404 error
- Error handler (no app crashes)
- Disabled
x-powered-by
header - Incoming JSON requests parsed