Skip to content

Configure Deploy for Frontend and Backend #69

@salazarsebas

Description

@salazarsebas

🚀 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 a vercel.json file with basic config (e.g., { "framework": "create-react-app" }).
  • In /backend, create a Procfile with content: web: node app.js for Heroku.
  • Update root package.json with deploy scripts: "deploy:frontend": "vercel --prod", "deploy:backend": "heroku push".
  • Ensure .env files are excluded via .gitignore, but add sample .env.example for required vars (e.g., PORT, Supabase keys).
  • Verify local setup works (e.g., npm start in 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.json and Procfile are 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 start works 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 week

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions