an online web platform for Princeton students to buy/sell/request goods
- Create a new conda environment:
conda create -n tigerretail
- Activate the conda environment:
conda activate tigerretail
- Install python:
conda install python=3.10
- Clone this repo and
cd
into the base TigerReTail directory - Install dependencies:
pip install -r requirements.txt
- If you're running into a
psycopg2
error (pg_config executable not found
), you probably have to installpostgresql
: https://stackoverflow.com/a/24645416
- If you're running into a
- Run
conda list
to validate that all packages inrequirements.txt
were installed. - Set all environment variables:
- Login to Heroku and go to the Settings tab for the
trt-dev
app (do NOT use prod!) - Reveal Config Vars
- For each Config Var key-value pair, create a local environment variable:
conda env config vars set key=value
(replacekey
andvalue
with the actual key and value) - After setting all env vars, reactivate your conda environment:
conda activate tigerretail
- Note that for
SECRET_KEY
, you might get an error so you can set its value to1
- Login to Heroku and go to the Settings tab for the
- Run
conda env config vars list
to validate all env vars were set.
After following the initial setup steps above, you can run the local development server:
cd
into theTRT-django
directory (a subfolder of the base directory)- Activate your environment:
conda activate tigerretail
- Run the server:
python manage.py runserver
- Visit
http://localhost:8000/
to verify the server is up and running. Note that you probably won't see most of the listing pictures.
- Visit