Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 977 Bytes

File metadata and controls

52 lines (39 loc) · 977 Bytes

Serverless development kit for Python

Starter template for Python development with Serverless Framework

Setup

Install this project

# Install this project
$ git clone [email protected]:horike37/serverless-python-development-kit.git
$ cd serverless-python-development-kit
$ npm install

# Setup libraries
$ python -m venv venv
$ . venv/bin/activate
$ pip install -r requirements.txt

Edit enviroment variables

# Create .envrc to suit your environment.
$ cp -pr .envrc.sample .envrc
$ vi .envrc # edit

# allow
$ direnv allow

Test

Run Unit test

$ pytest tests/unit/ -s

Run Integration test

$ pytest tests/integration/ --stage $INTEGRATION_TEST_STAGE --region $AWS_DEFAULT_REGION -s

Release

This project includes DB and API stack. You can deploy each stack with tagging with db- prefix or api- to GitHub.

$ git tag db-1.0.0
$ git push origin db-1.0.0
$ git tag api-1.0.0
$ git push origin api-1.0.0