Project requires python 3.10.8, pyenv, colima, docker, and poetry.
Install pyenv
tool to manage python version.
# install docker
brew install docker
brew link docker # optional
# install docker-compose
brew install docker-compose
# install colima container run time
brew install colima
# via docker
colima start
docker compose up -d
The application is accessible at http://localhost:3000.
-
Connect to the postgresSQL database from the local machine using the url localhost://postgres:postgres@postgres:5432/db
-
Run the SQL script in create_table.sql file located in the db folder
- Start the containers
docker-compose up -d
- Exec into the docker container
docker-compose run app bash
- Change the working directory to
scripts
directory
cd scripts
- Run the python command
python insert_data.py
pytest
will run all unit tests that you specify in your codebase.
As pytest convention, all files matching test_*.py
will be included.
docker-compose run app bash
poetry run pytest
- Implement Authentication - DONE
- Write (more) tests and fix the not working test
- Implement CI/CD Pipeline
- Github hooks for formatting the code