This project is a full-stack web application designed to track, display, and analyze LGBTQ+ safety data from around the world. It features a Vue.js frontend, a Python FastAPI backend, and a Supabase PostgreSQL database.
- Frontend: (Root directory) A Vite-powered Vue 3 application.
- Backend: (
/oracle-chamber) A FastAPI server that connects to the database.
- Node.js and npm
- Python 3.8+ and pip
- A Supabase account and project
-
Navigate to the backend directory:
cd oracle-chamber -
Create a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate` pip install -r requirements.txt
-
Configure Environment Variables: Create a file named
.envinside theoracle-chamberdirectory by copying the example:cp .env.example .env
Now, edit the
.envfile and add your actual Supabase credentials. -
Run the backend server:
uvicorn main:app --reload
The API will be running at
http://127.0.0.1:8000.
-
Navigate to the project root directory and install dependencies:
npm install
-
Run the frontend development server:
npm run dev
The application will be available at
http://localhost:5173. Thevite.config.jsis already configured to proxy API requests to the backend.