Skip to content

⚡️Serverless backend boilerplate with AWS integration (Cognito, Dynamo, S3...)

License

Notifications You must be signed in to change notification settings

borjadotai/serverless-api

Repository files navigation

Steps

To support the different chapters and steps of the tutorial; we use branches to represent the project codebase at the various points. Here is an index of the various chapters and branches in order.

Usage

To use this repo locally you need to have the Serverless framework installed.

$ npm install serverless -g

Clone this repo and install the NPM packages.

$ git clone https://github.com/AnomalyInnovations/serverless-stack-demo-api
$ npm install

Run a single API on local.

$ serverless invoke local --function list --path event.json

Where, event.json contains the request event info and looks something like this.

{
  "requestContext": {
    "authorizer": {
      "claims": {
        "sub": "USER-SUB-1234"
      }
    }
  }
}

Finally, run this to deploy to your AWS account.

$ serverless deploy

About

⚡️Serverless backend boilerplate with AWS integration (Cognito, Dynamo, S3...)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published