GitXplorerGitXplorer
a

serverless-starter-python

public
35 stars
6 forks
0 issues

Commits

List of commits on branch master.
Unverified
db4feca7e998f19855074920c4478bbd4dfb929a

Update README.md

aalexcasalboni committed 8 years ago
Unverified
41c4048b3dd121576c119d198736ae5f29286799

Fixed markdown

aalexcasalboni committed 8 years ago
Unverified
e33f6deba60d5a07bdc3a8c0c7265e9cee0e46db

Added Python dependency doc to README

aalexcasalboni committed 8 years ago
Unverified
ead7ba072885efef3daea03de1f5af0a709cf4ac

updated package version

aalexcasalboni committed 9 years ago
Unverified
3af3026707660874b8f7c431cdc70b8de4b1c564

fixed response model template

aalexcasalboni committed 9 years ago
Unverified
668347ab85a26a071edfbc09e3d0f7ae5b4abf40

updated README

aalexcasalboni committed 9 years ago

README

The README file for this repository.

[DEPRECATED] Serverless Starter

serverless

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

[DEPRECATED] This serverless Python starter is deprecated. The new official python sample is here.

Install

Make sure you have the Serverless Framework installed and you're using Node.js v4.0+.

npm install serverless -g

Install the project using Serverless:

serverless project install serverless-starter-python

Install project dependencies via npm:

npm install

Install Python dependencies via pip:

pip install -t restApi/vendored/ -r restApi/requirements.txt

or via virtualenv:

virtualenv myenv
source myenv/bin/activate
pip install -r restApi/requirements.txt
cp -R myenv/lib/python2.7/site-packages/* restApi/vendored/

Deploy your functions and endpoints:

serverless dash deploy

Includes

This project contains the following:

  • Multi: Multiple functions each containing a single endpoint
  • Single: A single function that uses multiple endpoints.
  • Continent: A real-world example with Python requirements and response mapping.
  • Templates: Templates are used to reduce configuraton syntax
  • REST API Parameters: The Multi/Show function endpoint gives an example of how to accept a path parameter