Setting Up and Running Bias Begone
- Ensure you have Node.js installed.
- Ensure you have Python installed (preferably Python 3.6+).
- Ensure SQLite is installed and available on your system.
git clone https://github.com/shrays/bias-begone.git
cd bias-begone
Setting up the Backend (FastAPI + SQLite):
- Navigate to the backend directory:
- Create a virtual environment and activate it:
python -m venv env
source env/bin/activate # On Windows, use: .\env\Scripts\activate
- Import necessary libraries:
python3 setup_environment.py
- Set OpenAI API key
export OPENAI_API_KEY=your_api_key
- Start the FastAPI server:
uvicorn main:app --reload
Setting up the Frontend (React):
- Navigate to the frontend directory:
- Install the required npm packages:
- Start the React application: