Skip to content

Latest commit

 

History

History
80 lines (40 loc) · 1.37 KB

README.md

File metadata and controls

80 lines (40 loc) · 1.37 KB

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.