This creates a lambda that will create pieces of a iiif Manifest on-the-fly from metadata stored in AppSync
- Setup pyenv - https://github.com/pyenv/pyenv
- Setup aws-cdk - https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html
Use venv - https://docs.python.org/3/library/venv.html
venv is included in the Python standard library and requires no additional installation. Additional details in deployment.
Use unittest - https://docs.python.org/3/library/unittest.html
Tests should be placed in manifest_lambda/tests/unit
To execute all test: python run_all_tests.py
Review the dev-requirements.txt to update development packages An example would be our linter package - flake8
Review the install_requires in setup.py to update production packages
- Setup virtual env
- python -m venv .env
- source .env/bin/activate
- Run local deployment
- local-deploy.sh mystackname
- Exit virtual env
- deactivate