Demo Link

Swagger Docs

Link: Docs

(https://dymaxion.nonprod.link/docs)

swagger

Home

Link: Home

(https://dymaxion.nonprod.link/home/email@test.com)

home



Running Tests

Run all tests:

pytest

Run module tests example:

pytest tests/integration/test_users.py 

Run specific test example:

pytest -k "test_create_user"



Running Application

Run app

docker build -t dymaxion .
docker run -dp 8000:8000  --name dycontainer dymaxion



Setting up for developmenet

Create virtual environment

python3 -m venv venv

Activate venv

. venv/bin/activate

Freeze dependencies

pip freeze > requirements.txt

Install requirements

pip install -r requirements.txt

Run project

uvicorn main:app --reload



Deploy

Push to AWS ECR

export AWS_ACCESS_KEY_ID=****
export AWS_SECRET_ACCESS_KEY=****
docker build -t 085419913565.dkr.ecr.us-east-1.amazonaws.com/dymaxion_challenge .
docker push 085419913565.dkr.ecr.us-east-1.amazonaws.com/dymaxion_challenge