0.1.0 • Published 4 years ago

@grenadierjs/dev-server v0.1.0

Weekly downloads
2
License
SEE LICENSE IN LI...
Repository
-
Last release
4 years ago

The Development Server

The dev server looks for "lambda functions" in the directory (default: ./api/src/functions) specified by your grenadier.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 to return a response:

export const handler = (event, context, callback) => {
	return callback(null, { status: 200, body: "Hello, world" });
};
0.1.0

4 years ago

0.0.6-alpha.0

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.1

4 years ago