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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.200latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.200
1.0.190
1.0.180
1.0.170
1.0.160
1.0.150
1.0.140
1.0.130
1.0.120
1.0.110
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.41
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i aws-sam-server

Weekly Downloads

1

Version

1.0.20

License

ISC

Unpacked Size

22.1 kB

Total Files

10

Last publish

Collaborators

  • exabugs