Skip to content

joshiharshal/Django-polls-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DevOps Poll App 🎯

A simple Django-based web app that allows users to vote for their favorite DevOps tool. This project demonstrates form handling, frontend styling, and basic backend logic.


πŸ“ƒ Project Description

This application presents users with a poll asking: "Which DevOps tool do you use the most?" Users can choose from popular tools like Docker, Kubernetes, Jenkins, Terraform, and Ansible.


πŸ”Ή Features

  • Interactive voting form using HTML and Django
  • Emojis for a more engaging UI
  • Radio button selection and a vote button
  • Easy integration with a Django backend
  • Ready for AJAX-based submission (optional upgrade)

πŸ“† Screenshots

βœ… Poll Form Interface:

Poll Screenshot


πŸ“Š Technologies Used

  • Frontend: HTML5, CSS3 (with emoji styling)
  • Backend: Django (Python)
  • Database: SQLite (default for development)

πŸ“ Installation Guide

1. Clone the Repository

git clone https://github.com/joshiharshal/devops-poll-app.git
cd devops-poll-app

2. Set Up a Virtual Environment

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

4. Run Migrations and Start Server

python manage.py migrate
python manage.py runserver

5. View in Browser

Open your browser and go to: http://127.0.0.1:8000/


🎑 Project Structure

devops-poll-app/
β”œβ”€β”€ polls/
β”‚   β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ static/
β”‚   β”œβ”€β”€ views.py
β”‚   β”œβ”€β”€ models.py
β”‚   └── urls.py
β”œβ”€β”€ screenshots/
β”‚   β”œβ”€β”€ image1.png
β”‚   
β”œβ”€β”€ manage.py
β”œβ”€β”€ requirements.txt
└── README.md

πŸ‘₯ Author

Harshal

GitHub: @joshiharshal


πŸš€ Want to Expand It?

  • Add real-time vote results display
  • Store results in a Django model
  • Integrate AJAX for no-reload form submission
  • Secure votes using session or IP validation
  • Dockerize and deploy on AWS EC2 with Nginx

Let me know if you want help with any of these upgrades!

✏️ License

  • This project is licensed under the MIT License. Feel free to use, modify, and share it.

  • See the LICENSE file for more details.

About

Vote for your favorite DevOps tool – A simple Django-powered poll web app 🎯

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors