Installation guide
- install miniconda from miniconda site
- run
conda env create -f environment.yml
- activate env
conda activate hackafor-api-py310
- Install python 3.10 from python site
- Install virtualenv library
python3 -m pip install virtualenv
- Create environment
python3 -m virtualenv venv
- activate env
source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Install python 3.10 from python site
- Install virtualenv library
python -m pip install virtualenv
- Create environment
python -m virtualenv venv
- activate env
venv\Scripts\activate
- Install dependencies
pip install -r requirements.txt
This API uses supabase to connect, add SUPABASE_URL
and SUPABASE_KEY
to environment variables or .env
file.
Railway:
- Add environment variable to railway
NIXPACKS_PYTHON_VERSION=3.10
to use python 3.10.
For development:
uvicorn app:app --reload
Railway:
- it is already configured on the Procfile with
web: uvicorn app:app --host 0.0.0.0 --port $PORT
.