lessev
v1.0.2
Published
serverless dev server
Downloads
4
Maintainers
Readme
Lessev
Serverless dev server.
Features
- Auto refresh
- Easy to use
- JSON only
Usage
- Install
npm i lessev -g
- Build serverless function
index.js
'use strict'
exports.handler = async (event, context) => {
return { message: 'hello world' }
}
package.json
{
"main": "index.js",
"scripts": {
"start": "lessev"
}
}
- Start serverless service
npm start
Options
lessev --port=3000 --method=POST --entry=handler --timeout=3000 --path=/path/to/project --mount=/api --limit
port
server listen port, default 4000method
allow method, support GET or POST, default POSTentry
function entry, default handlertimeout
handler timeout, default 3000path
project directory, default cwdmount
mount request path, default /limit
body limit, default 2000