Hello, please run through the whole setup before the interview.
You will be coding in the src/main.py
file.
To run your code you can use the following command
With pipenv:
pipenv run start
Without pipenv:
python -m src.main
We installing Pipenv as a package manager for the project to handle the virtual environment and python versioning.
- Python 3.10+ (3.9 might work but not tested)
- Python package manger (pip or pipenv)
You can use the following command to run clone the repository into folder /live-coding-test
and move into it
git clone https://github.com/redriverwest/live-coding-test.git live-coding-test && cd live-coding-test
With pipenv:
pipenv install
Without pipenv:
pip install -r requirements.txt
Create a file named .env
with the content from .env.example
and fill in the values. (DATABASE_URL
will be provided during the interview)
During the interview we will provide you with a DATABASE_URL
environment variable to set in your environment file. It would be nice if you could try with a local / free PostgreSQL database beforehand to make sure everything works.
You can get a free hosted PostgreSQL database through Supabase or Neon
Test your setup by running the following command
With pipenv:
pipenv run test
Without pipenv:
python -m src.utils.test