perzanko / serverless-nodejs-example

Serverless REST API example (AWS Lambda + AWS DynamoDB)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverless REST API example

This repo provides an example Serverless REST API. It uses AWS Lambda and NoSQL DynamoDB database.

Getting Started

You need to have serverless installed globally. If you don't have please run:

$ npm install -g serverless

Installing

To install dependencies run:

$ npm install

Start local server

To run a local server you must use a special serverless-offline plugin, run:

$ sls offline

You should see something like that:

Serverless: Offline listening on http://localhost:3000

Configuration

You have to setup your own configuration in serverless.yml, if you want to deploy this code on AWS.

Deployment

$ sls deploy

About

Serverless REST API example (AWS Lambda + AWS DynamoDB)


Languages

Language:JavaScript 100.0%