Serverless backend for the website
You need to build the docker image if you don't want to use the default
- check the registry tab in the project on GitLab for instructions
Requires environmental variables from IAM user created for deployments:
- AWS_ACCESS_KEY_ID with the new user’s access key
- AWS_SECRET_ACCESS_KEY with the new user’s access secret key
- BASE_DOMAIN with the domain registered in AWS hosted zones
- Disable committing to master and only allow changes by merging via branches
Install
yarn install
Run linting and auto correct errors
yarn lint
Install
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
pip3 install -r dev-requirements.txt
Lint (Tests currently not included in ci build)
pylint src
pylint tests
pylint e2e
Run unit tests
pytest tests
Run End to End tests
pytest e2e
Docker image with python, nodesjs and serverless is required.