Runtime Labs
Create a copy of the reference env file in the root of the project and update the values accordingly.
cp .env.sample .env.local
Create a file named .env.test
and the the following
TEST_ENVIRONMENT=True
DATABASE_HOST=localhost
DATABASE_USER=postgres
DATABASE_PASS=postgres
DATABASE_NAME=test
DATABASE_PORT=65433
DATABASE_URL=postgresql://${DATABASE_USER}:${DATABASE_PASS}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}
Here's the steps to setup the project locally:
poetry shell
poetry install
make db_up
make api
or ENV=local make api
ENV=test make tests