0.0.1-alpha.14 • Published 4 years ago
@hammerframework/hammer-dev-server v0.0.1-alpha.14
The Hammer Development Server
The hamer dev server looks for "lambda functions" in the directory
(default: ./api/src/functions
) specified in your hammer.toml
configuration file.
Each lambda function is mapped to a URI based on their filename, as
an example: ./api/src/functions/graphql.js
would be accessible
at http://localhost:8911/graphql
.
The ./api
directory is watched for modifications, when they are
detected the modules are reimported.
A lambda function must export a handler
. You can execute the
supplied callback function:
export const handler = (event, context, callback) => {
return callback(null, { status: 200, body: 'Hello, world' })
}
0.0.1-alpha.14
4 years ago
0.0.1-alpha.12.5
5 years ago
0.0.1-alpha.12
5 years ago
0.0.1-alpha.10
5 years ago
0.0.1-alpha.9
5 years ago
0.0.1-alpha.8.1
5 years ago
0.0.1-alpha.8
5 years ago
0.0.1-alpha.7
5 years ago
0.0.1-alpha.6
5 years ago
0.0.1-alpha.5
5 years ago
0.0.1-preview.1
5 years ago