- Python 3.10+
- Node.js 18+
- A Google Cloud project with OAuth 2.0 credentials
- A Google Gemini API key
git clone https://github.com/Project-eigen/version_1.git
cd version_1cd backend
pip install -r requirements.txtCopy the env template and fill in your credentials:
cp .env.example .envEdit backend/.env with your actual values:
| Variable | What to put |
|---|---|
SECRET_KEY |
Any random secret string |
GOOGLE_CLIENT_ID |
From Google Cloud Console → OAuth 2.0 Client |
GOOGLE_CLIENT_SECRET |
From Google Cloud Console → OAuth 2.0 Client |
GOOGLE_REDIRECT_URI |
http://localhost:5000/api/auth/callback |
FRONTEND_URL |
http://localhost:5173 |
GEMINI_API_KEY |
From Google AI Studio |
Run the backend:
python app.pyBackend runs on http://localhost:5000
cd ../frontend
npm install
npm run devFrontend runs on http://localhost:5173
In Google Cloud Console → APIs & Services → Credentials → your OAuth 2.0 Client:
Authorized JavaScript origins:
http://localhost:5173
http://localhost:5000
Authorized redirect URIs:
http://localhost:5000/api/auth/callback
Open http://localhost:5173 in your browser.