-
Notifications
You must be signed in to change notification settings - Fork 108
Docs: Improve local setup instructions for API keys & .env file structure #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,7 +127,7 @@ pip install -r requirements.txt | |
|
|
||
| 3. Navigate to the app directory: | ||
| ```sh | ||
| cd app | ||
| cd backend/app | ||
| ``` | ||
|
|
||
| 4. Create a `.env` file using `.env-example` as a reference. | ||
|
|
@@ -165,6 +165,49 @@ cd app | |
| - Visit [Groq Console](https://console.groq.com/) | ||
| - Create an API key and paste it into the `.env` file | ||
|
|
||
| 7. Get the Gemini API key: | ||
| - Visit [Google AI Studio](https://aistudio.google.com/) | ||
| - SignIn/SignUp with Google account | ||
| - Click "API Keys" left side panel | ||
| - Click "Create API Key" | ||
| - Name your key "..." and select "Default Gemini Project" | ||
| - Click "Create key" | ||
| - Paste the API KEy into the `.env` file | ||
|
|
||
| 8. Final `.env` file should look: | ||
|
|
||
| ```sh | ||
| SUPABASE_URL=[URL] | ||
| SUPABASE_KEY=[URL] | ||
|
|
||
| user=postgres | ||
| password=[YOUR-PASSWORD] | ||
| host=db.wveftanaurduixkyijhf.supabase.co | ||
| port=5432 | ||
| dbname=postgres | ||
|
|
||
| GROQ_API_KEY=[URL] | ||
|
|
||
| GEMINI_API_KEY=[URL] | ||
| ``` | ||
|
|
||
| [The above works in ipv6 networks, if you are in ipv4 network or it cause errors, use the below connection string which could be found in Session Pooler connection] | ||
|
|
||
| ```sh | ||
| SUPABASE_URL=[URL] | ||
| SUPABASE_KEY=[URL] | ||
|
|
||
| user=postgres.<project> | ||
| password=[YOUR-PASSWORD] | ||
| host=aws-<location>.pooler.supabase.com | ||
| port=5432 | ||
| dbname=postgres | ||
|
|
||
| GROQ_API_KEY=[URL] | ||
|
|
||
| GEMINI_API_KEY=[URL] | ||
| ``` | ||
|
|
||
| #### 4. Start Development Servers | ||
|
|
||
|
|
||
|
|
@@ -173,7 +216,7 @@ cd app | |
| npm run dev | ||
| ``` | ||
|
|
||
| 2. Start the backend server (from the backend/app directory): | ||
| 2. Start the backend server (from the backend directory): | ||
| ```sh | ||
| uvicorn main:app --reload | ||
|
Comment on lines
+219
to
221
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Verify backend startup command matches actual directory structure. The startup command Resolve the directory structure issue at lines 128β131 first, then update this command accordingly. π€ Prompt for AI Agents |
||
| ``` | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§© Analysis chain
π Web query:
Google AI Studio create API key current instructions 2025π‘ Result:
Steps (current, 2025)
Sources:
[1] Google AI for Developers β Using Gemini API keys / AI Studio docs.
[2] Google AI Studio community support + GCP Console instructions.
[3] Google AI for Developers β Build mode / key usage recommendations.
Fix typo and update Gemini API key steps to match current UI.
Line 175 contains a typo: "Paste the API KEy" should be "Paste the API Key".
The documented steps are outdated. Current Google AI Studio interface (2025) differs from the substeps listed:
Update the instructions to reflect: Sign in to ai.google.dev, navigate to Dashboard β API Keys β Create API key, select/create a Google Cloud project, then copy the generated key for use in the
.envfile.π€ Prompt for AI Agents
π§© Analysis chain
π Web query:
Google AI Studio API key creation steps 2025 current interfaceπ‘ Result:
Steps (current AI Studio flow, 2025):
Notes: Creating keys from AI Studio requires IAM permissions such as apikeys.keys.create, serviceusage.services.enable and resourcemanager.projects.update; if you lack permissions, use the Cloud Console or ask your admin. [1][3]
Sources: Google AI Studio βUsing Gemini API keysβ tutorial and Google Cloud API Keys docs. [1][2][3]
Fix typo and update Gemini API key creation steps to match current Google AI Studio interface.
Line 175: "API KEy" should be "API Key".
The steps in lines 168-175 are incomplete and don't match the current Google AI Studio workflow (2025). The current process requires:
The README skips the project import step entirely, which may cause users to fail if they attempt to follow these steps. Additionally, the URL should reference
ai.google.com/studioinstead ofaistudio.google.com.Consider updating the steps to include project import and clarifying the association with GCP projects.
π€ Prompt for AI Agents