- Clone this repository with
git clone <repository-link>and cd into the project root - Confirm you have Python installed
- Confirm you have psql
cd ponder/serverfrom the root project folder to move to the backend- Create local environment variables 🔐
- Create a
.envwith the following contentsPOSTGRES_DB=ponder DATABASE_URL=postgres://postgres:postgres@localhost:5432/ponder POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres POSTGRES_HOST=localhost POSTGRES_PORT=5432 SECRET_KEY= PRODUCTION=False CORS_ORIGIN_WHITELIST='http://localhost:3000' OPENAI_API_KEY= - replace SECRET_KEY and OPENAI_API_KEY with your own values
- Create a
- Set up your psql table:
brew services start postgresqlto start running postgrespsql -U postgresto go into the postgres terminal interfaceCREATE DATABASE ponder;to create the required database\land confirm the list of returned database names includes beantalks\qto quit the terminal interface and retur back to/serverdirectory
- Set up your virtual environment:
- Installation virtualenv:
pip install virtualenv - Initialize virtual environment:
python -m venv <your-virtual-env-name> - Activate virtual environment:
source <your-virtual-env-name>/bin/activate
- Installation virtualenv:
- Install requirements.txt:
pip install -r requirements.txt - Migrate database:
python manage.py migrate - Run server:
python manage.py runserver
cd ponder/mobilefrom the root project folder to move to the frontendnpm installnpx expo start