aws-sam-server
TypeScript icon, indicating that this package has built-in type declarations

1.0.20 • Public • Published

aws-sam-server

Overview

AWS SAM Local Debug Server.

How To Install

yarn add aws-sam-server

Create Your SAM App

$ brew upgrade aws-sam-cli
$ sam init

How To Use

import { createServer } from 'aws-sam-server';

const port = 3456;
const fullpath = `${__dirname}/template.yaml`;

const server = await createServer(fullpath);
const listen = promisify(server.listen.bind(server));
await listen(port);
curl http://localhost:3456/hello

Readme

Keywords

none

Package Sidebar

Install

npm i aws-sam-server

Weekly Downloads

2

Version

1.0.20

License

ISC

Unpacked Size

22.1 kB

Total Files

10

Last publish

Collaborators

  • exabugs