A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/serverless/serverless-starter below:

serverless/serverless-starter: A boilerplate for new Serverless Projects

#Serverless Starter

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

This project contains the following:

##Prerequisites

##Installation

Clone the project from GitHub:

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

Enter the newly created folder:

Deploy your functions and endpoints:

##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.

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

Call the "single" endpoint using the POST method.

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

Call the "multi/create" endpoint using the GET method.

curl -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".

curl -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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4