🚀 ASTRA Frontend Deployment Guide
Quick Deploy Options
Your ASTRA frontend is now ready to be deployed! Choose one of these options:
Option 1: GitHub Pages (Recommended - Free)
Steps:
-
The gh-pages
branch is already created with your frontend files
- Push the gh-pages branch:
- Enable GitHub Pages:
- Go to https://github.com/AKESH11/Astra/settings/pages
- Under “Source”, select branch:
gh-pages
- Click “Save”
- Your site will be live at:
https://akesh11.github.io/Astra/
Note: For the backend to work, you’ll need to deploy it separately (see Backend Deployment below)
Option 2: Netlify (Also Free, Easier)
Steps:
-
Go to: https://app.netlify.com/
-
Sign up/Login with GitHub
-
Click “Add new site” → “Import an existing project”
-
Connect your GitHub repository (AKESH11/Astra)
- Configure:
- Branch:
gh-pages
(or main
)
- Build command: (leave empty)
- Publish directory:
.
(or frontend
)
- Deploy!
Your site will be live at: https://your-site-name.netlify.app
Option 3: Vercel (Also Free)
Steps:
-
Go to: https://vercel.com/
-
Sign up/Login with GitHub
-
Click “Add New” → “Project”
-
Import your GitHub repository
- Configure:
- Framework: None
- Root Directory:
frontend
(or .
if using gh-pages branch)
- Build command: (leave empty)
- Deploy!
Your site will be live at: https://your-project.vercel.app
đź”§ Backend Deployment (Required for Full Functionality)
Your frontend needs the backend services to work. Here are options:
Option 1: Local Backend (For Demo)
Keep your backend running locally and demo from your laptop.
Option 2: Deploy Backend to Cloud
A. Railway.app (Recommended - Free tier)
- Go to https://railway.app/
- Sign up with GitHub
- Create new project
- Deploy each service separately or use Docker
- Update
API_URL
in your frontend with the deployed URL
- Go to https://render.com/
- Sign up with GitHub
- Create web services for each microservice
- Update frontend API_URL
C. Heroku (Has free tier)
- Deploy each service as a separate Heroku app
- Update frontend API_URL
D. DigitalOcean/AWS/Azure (Paid but professional)
- Use Docker Compose
- Deploy all services together
- Most scalable option
📝 Important: Update API URL
After deploying your backend, update the API_URL
in your frontend:
File: index.html
(line ~88)
const API_URL = window.location.hostname === 'localhost'
? 'http://localhost:8000'
: 'https://your-actual-backend-url.com'; // <-- Update this!
🎯 For Demo/Competition
Quick Option (Recommended):
- Deploy frontend to GitHub Pages/Netlify (takes 2 minutes)
- Run backend locally during your demo
- Share the live frontend link: “Check out our UI at [your-url]”
- For the actual demo, show it working with your local backend
Professional Option:
- Deploy both frontend and backend to cloud
- Share fully working live demo URL
- More impressive but takes more time to set up
đź”— Your Deployment URLs
Once deployed, update this section:
- Frontend (Live UI): https://akesh11.github.io/Astra/
- Backend (API): (run locally or deploy to Railway/Render)
- GitHub Repo: https://github.com/AKESH11/Astra
⚡ Quick Deploy Now (GitHub Pages)
Run these commands:
# Make sure you're on gh-pages branch
git checkout gh-pages
# Commit any changes
git add .
git commit -m "Deploy frontend to GitHub Pages"
# Push to GitHub
git push origin gh-pages
Then enable GitHub Pages in your repository settings!
🎥 For Your Demo Video
You can use either:
- Local version -
file:///path/to/frontend/index.html
(with services running)
- Deployed version -
https://akesh11.github.io/Astra/
(looks more professional!)
âś… Checklist
đź’ˇ Pro Tip
For the competition, you can:
- Deploy frontend (looks professional with a real URL)
- Demo with local backend (easier, no cloud setup needed)
- Mention “Backend can be deployed to Railway/AWS/Azure for production”
This shows both that it works AND that you understand deployment architecture!
Good luck with your deployment! 🚀