DEV Community

Aqib
Aqib

Posted on

I Built an Interactive Election Guide Assistant (and Deployed it on Cloud Run

Understanding elections can be confusing—especially for first-time voters.
So I built a simple solution 👇

💡 The Idea

I created an Interactive Election Guide Assistant that explains:

🪪 How to register to vote
🗳️ What happens on voting day
📅 Election timelines
❓ Common questions (in simple language)

Instead of long explanations, it uses:
👉 Step-by-step guidance
👉 Interactive choices
👉 Beginner-friendly UX

🎯 Key Features
Step-based navigation (no info overload)
Progress tracking (Step 1 of 4)
Simple explanations (ELI5 style)
Myth vs Fact + Mini quizzes
🌐 Live Demo

🔗 https://aqib85385-svg.github.io/Election-Process-Assistant-/

☁️ Deployment Journey (Cloud Run)

I wanted to go beyond static hosting, so I deployed it on Google Cloud Run.

⚠️ Challenge I Faced:

My app was a static site, but Cloud Run expects a server running on PORT 8080

👉 Result:

Container failed to start and listen on PORT=8080
🛠️ Fix (What I Learned)

I used Nginx + Docker and configured it to run on port 8080:

FROM nginx:alpine
COPY . /usr/share/nginx/html
ENV PORT 8080
RUN sed -i 's/listen 80;/listen 8080;/' /etc/nginx/conf.d/default.conf
CMD ["nginx", "-g", "daemon off;"]

Then deployed using:

gcloud run deploy election-assistant \
--source . \
--region asia-south1 \
--allow-unauthenticated

💥 Boom—got my Cloud Run URL live!

🧠 Key Takeaways
Cloud Run needs apps to listen on port 8080
Static sites can run using Nginx
GitHub Pages is easier, but Cloud Run adds real deployment experience
🚀 What’s Next
Convert into a chat-style UI (like ChatGPT)
Add multi-language support
Integrate real-time election data
🙌 Final Thoughts

This project helped me understand:

Prompt engineering
UX design for AI assistants
Real-world deployment on cloud

⭐ If you like the project, check it out and share feedback!

AI #CloudRun #WebDevelopment #OpenSource #BeginnerProject #India #Tech

Top comments (0)