This contains everything you need to run your app locally and deploy it to GitHub Pages.
View your app in AI Studio: https://ai.studio/apps/drive/1KuABnUFyQMDYeyKKS9vkbsCB7f4cDIyn
This app uses UPI payment for secure transactions. After clicking "Pay", customers are directed to a UPI QR code for payment. Products are delivered to email and the user's dashboard within 2-3 hours after payment is received.
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 repository is configured for automatic deployment to GitHub Pages. Follow these steps:
-
Enable GitHub Pages:
- Go to your repository on GitHub
- Navigate to Settings → Pages
- Under "Build and deployment":
- Source: Select "GitHub Actions"
- Click Save
-
Configure GitHub Actions Permissions (if needed):
- Go to Settings → Actions → General
- Under "Workflow permissions":
- Select "Read and write permissions"
- Enable "Allow GitHub Actions to create and approve pull requests"
- Click Save
Once the setup is complete:
- Push to main branch: Any push to the
mainbranch will automatically trigger a deployment - Manual deployment: Go to Actions tab → Select "Deploy to GitHub Pages" workflow → Click "Run workflow"
After the deployment workflow completes (usually takes 1-2 minutes):
- Your app will be available at:
https://[your-username].github.io/PromptFoundry/ - Replace
[your-username]with your GitHub username
To test the production build locally before deploying:
npm run build
npm run previewThe preview will be available at http://localhost:4173
