CoffeeChatr β
Welcome to CoffeeChatr(server no longer maintained), the platform for young professionals to brew meaningful conversations! Say goodbye to awkward silences and hello to engaging interactions. With CoffeeChatr, you can easily create coffee chatting questions, track your meetings, and save notes for each meeting. Cheers to coffee, connections, and captivating conversations!
Getting Started Locally π’
- Clone this repository with
git clone <repository-link>
and cd into the project root - Confirm your Python version >= 3.9.0:
python --version
- Confirm your yarn version >= 1.22.11:
yarn --version
- Confirm your PostgreSQL version >= 14:
psql --version
Backend Setup (Mac OS) πΎ
cd coffeechatr/server
from the root project folder to move to the backend- Create local environment variables π
- Create a
.env
with the following contentsPOSTGRES_DB=beantalks DATABASE_URL=postgres://postgres:postgres@localhost:5432/beantalks 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 postgresql
to start running postgrespsql -U postgres
to go into the postgres terminal interfaceCREATE DATABASE beantalks;
to create the required database\l
and confirm the list of returned database names includes beantalks\q
to quit the terminal interface and retur back to/server
directory
- 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
Frontend Setup π»
cd coffeechatr/frontend
from the root project folder to move to the frontend- Create an Auth0 account and follow the Auth0 Next.js quickstart guide
- Configure local environment variables π
- Create a
.env.local
file with the following contents:AUTH0_SECRET= # The base url of your application AUTH0_BASE_URL='http://localhost:3000' # The url of your Auth0 tenant domain AUTH0_ISSUER_BASE_URL= # Your Auth0 application's Client ID AUTH0_CLIENT_ID= # Your Auth0 application's Client Secret AUTH0_CLIENT_SECRET= NEXT_PUBLIC_SERVER_URL='http://localhost:8000'
- Replace the blank values with our Auth0 application info
- Create a
- Install dependencies:
yarn
- Start server with Next.js:
yarn dev
- Go to http://localhost:3000 and sign up for free π