This contains everything you need to run your app locally.
View your app in AI Studio: https://ai.studio/apps/drive/1yqkYEM0V3keScMHX8BqYAWT7vfVuu33E
Prerequisites: Node.js
- Install dependencies:
npm install - Set the
GEMINI_API_KEYin .env.local to your Gemini API key - Run the app:
npm run dev
This webapp is configured to automatically deploy to GitHub Pages when changes are pushed to the main branch.
-
Enable GitHub Pages in your repository settings:
- Go to
Settings→Pages - Under "Source", select
GitHub Actions
- Go to
-
Add your Gemini API Key as a secret:
- Go to
Settings→Secrets and variables→Actions - Click
New repository secret - Name:
GEMINI_API_KEY - Value: Your Gemini API key
- Go to
-
Deploy:
- Push to the
mainbranch or manually trigger the workflow from the Actions tab - Your app will be available at:
https://<username>.github.io/AIAdvantage/
- Push to the
You can also manually trigger the deployment:
- Go to the
Actionstab in your repository - Select the "Deploy to GitHub Pages" workflow
- Click
Run workflow
