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
cdinto the base TigerReTail directory - Install dependencies:
pip install -r requirements.txt- If you're running into a
psycopg2error (pg_config executable not found), you probably have to installpostgresql: https://stackoverflow.com/a/24645416
- If you're running into a
- Run
conda listto validate that all packages inrequirements.txtwere installed. - Set all environment variables:
- Login to Heroku and go to the Settings tab for the
trt-devapp (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(replacekeyandvaluewith 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 listto validate all env vars were set.
After following the initial setup steps above, you can run the local development server:
cdinto theTRT-djangodirectory (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