serverless/serverless-starter

Name: serverless-starter

Owner: Serverless

Description: A boilerplate for new Serverless Projects

Created: 2016-01-19 22:36:17.0

Updated: 2018-05-22 11:47:56.0

Pushed: 2017-09-08 03:06:29.0

Homepage: null

Size: 32

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Serverless Starter

serverless

A bare bones Serverless Framework project with examples for common use cases.

This project contains the following:

Prerequisites
Installation

Clone the project from GitHub:

clone https://github.com/serverless/serverless-starter.git

Enter the newly created folder:

erverless-starter

Deploy your functions and endpoints:

erless deploy
Testing with Curl

Use the following commands to test your newly created endpoints.

Note: You must replace the URLs in the examples below with those which are displayed after deploying. You can use the serverless info command to display the URLs if they are no longer on your screen.

Call the “single” endpoint using the GET method.

 -X GET https://XXXXXXXXXX.execute-api.us-east-1.amazonaws.com/dev/single

Call the “single” endpoint using the POST method.

 -X POST https://XXXXXXXXXX.execute-api.us-east-1.amazonaws.com/dev/single

Call the “multi/create” endpoint using the GET method.

 -X GET https://XXXXXXXXXX.execute-api.us-east-1.amazonaws.com/dev/multi/create

Call the “multi/show” endpoint using the GET method and specifying an id path parameter of “42”.

 -X GET https://XXXXXXXXXX.execute-api.us-east-1.amazonaws.com/dev/multi/show/42
Removal

Once you're all done with the serverless-starter project, use the following command to remove the project from AWS completely.

erless remove

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.