Skip to content

A Python AWS Lambda with functions to make my life easier! Uses AWS SAM

Notifications You must be signed in to change notification settings

LeonPatmore/life-efficiency

Repository files navigation

Life Efficiency

<LeonPatmore>

A project to improve the efficiency of my life!

Running Locally

All commands should be run from the root of the repo.

  1. Make sure that you set your python path to the source root (this is different from the repo root):

    Windows:

    set PYTHONPATH=%PYTHONPATH%;.\life-efficiency

    Linux

    export PYTHONPATH=./life-efficiency

  2. Make sure your AWS credentials are setup:

    Windows:

    set AWS_CONFIG_FILE=D:\Tools\cygwin\home\Leon\.aws\config

    set AWS_SHARED_CREDENTIALS_FILE=D:\Tools\cygwin\home\Leon\.aws\credentials

  3. pipenv install -d

  4. pipenv run python life-efficiency/main.py

Running Tests

We are using pytest to test this project, and a pytest plugin to monitor the test coverage.

make test

Running the Linter

We are using flake8 as our super cool Python linter.

make lint

Building

  1. Update the requirements file: pipenv lock -r > life-efficiency/requirements.txt.

  2. Build make build

Running Lambda Locally

make run

Deploying

Dev

make deploy-dev

Prod

make deploy-prod

Functional Tests

Note: You must have valid AWS environment setup.

make test-functional

TODO

https://github.com/todotxt/todo.txt

Shopping

History

Shopping history is stored.

About

A Python AWS Lambda with functions to make my life easier! Uses AWS SAM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published