UNPKG

681 BMarkdownView Raw
1# Backbeam lambda
2
3Backbeam lambda is a command line tool and a development server that makes a lot easier to create web applications based on AWS lambda.
4
5# Get started
6
7First, create a credentials file for AWS in `~/.aws/credentials`. Example:
8
9```
10[default]
11aws_access_key_id = YOUR_AWS_ACCESS_KEY
12aws_secret_access_key = YOUR_AWS_SECRET_ACCESS_KEY
13```
14
15Install `backbeam-lambda`
16
17```
18npm install backbeam-lambda -g
19```
20
21Start a project
22
23```
24mkdir myproject
25cd myproject
26backbeam-lambda init
27```
28
29Create a new controller
30
31```
32backbeam-lambda controllers create
33```
34
35Sync a controller
36
37```
38backbeam-lambda controllers sync
39```
40
41Deploy the API
42
43```
44backbeam-lambda api deploy
45```