-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Description
🚀 Configure Deploy for Frontend and Backend 🌐
📝 Description
Set up deployment configurations for the frontend (React) and backend (Express) using Vercel for the frontend and Heroku for the backend. This enables hosting the Stellar Idea Forge application, ensuring the chat and visual components are accessible online.
🎯 Objective
Implement deployment scripts and configurations in stellar-idea-forge to deploy the frontend and backend seamlessly.
✅ Requirements
- In
/frontend, create avercel.jsonfile with basic config (e.g., { "framework": "create-react-app" }). - In
/backend, create aProcfilewith content:web: node app.jsfor Heroku. - Update root
package.jsonwith deploy scripts: "deploy:frontend": "vercel --prod", "deploy:backend": "heroku push". - Ensure
.envfiles are excluded via.gitignore, but add sample.env.examplefor required vars (e.g., PORT, Supabase keys). - Verify local setup works (e.g.,
npm startin both folders) before deploy. - Commit changes to the Git repository with a message like "Configured deployment for frontend (Vercel) and backend (Heroku)".
🏆 Expected Outcomes
vercel.jsonandProcfileare created and correctly configured.- Frontend deploys to Vercel, serving React app; backend deploys to Heroku, responding to /health.
- Environment variables are documented for deploy setup.
- Changes committed, and testable by running local servers or mock deploy commands.
🔗 References
📋 Notes
- Requires Vercel CLI (
npm install -g vercel) and Heroku CLI installed locally. - Test locally first: Ensure
npm startworks in both folders before pushing. - For testing, use Vercel/Heroku free tiers; add vars manually in their dashboards.
Metadata
Metadata
Assignees
Labels
onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week