srver
v1.4.0
Published
A simple server with tools to create APIs
Downloads
4
Readme
Srver
Srver is a simple server with tools to create APIs
Server
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