https://github.com/k0msenapati/would-you-rather
A fun web app where you create and vote on "Would You Rather" questions.
https://github.com/k0msenapati/would-you-rather
flask html python sqlite tailwind
Last synced: 5 months ago
JSON representation
A fun web app where you create and vote on "Would You Rather" questions.
- Host: GitHub
- URL: https://github.com/k0msenapati/would-you-rather
- Owner: k0msenapati
- License: unlicense
- Created: 2025-05-15T13:25:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-15T13:46:19.000Z (about 1 year ago)
- Last Synced: 2026-01-13T12:15:57.469Z (5 months ago)
- Topics: flask, html, python, sqlite, tailwind
- Language: HTML
- Homepage:
- Size: 26.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
📝 Would You Rather 📝
Create and Vote on Engaging Dilemmas
> [!NOTE]
>
> Would You Rather is an interactive web application that allows users to create, share, and vote on "Would You Rather" questions. Users can sign up, create their own dilemmas, vote on others' questions, and track statistics on their profile. Built with Flask, SQLAlchemy, and styled with Tailwind CSS, this application provides a fun and engaging way to explore hypothetical choices.
## 🌟 Features
> **Would You Rather** features intro:
- **User Authentication** – Secure signup and login system with personalized user profiles
- **Create Questions** – Easily create your own "Would You Rather" dilemmas with option A and B
- **Vote System** – Cast your vote on questions and see real-time statistics
- **Categories** – Organize questions with custom categories for better discovery
- **User Profiles** – View your activity, statistics, and voting preferences
- **Responsive Design** – Beautiful, modern UI that works on all devices
## 💻 Installation
> You can set up **Would You Rather** with these commands:
###### terminal
```bash
# Clone the repository
git clone https://github.com/k0msenapati/would-you-rather
cd would-you-rather
# Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows, use .venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Set up the database
flask db init
flask db migrate
flask db upgrade
# Run the application
python run.py
```
## 🚀 Getting Started
After installation, follow these steps to get started:
1. **Access the Application**
- Open your browser and navigate to `http://localhost:5000`
2. **Create an Account**
- Click on "Sign Up" to create a new account
- Fill in your name, username, email, and password
3. **Create Your First Question**
- After logging in, click on "Create New Question" button
- Enter two options for your "Would You Rather" question
- Add optional categories to help organize your question
4. **Vote and Explore**
- Browse questions on the dashboard
- Vote on questions by selecting your preferred option
- View statistics and results for each question
## Demo
https://github.com/user-attachments/assets/38280905-b22a-4650-801b-a639883624f1
---
## 👤 Author
---
📄 License
Would You Rather is licensed under the Unlicense License. See the LICENSE file for more details.
---
🌟 If you find this project helpful, please give it a star on GitHub! 🌟
# Thanks to Pheonix Coder for the [starter template](https://github.com/pheonix-coder/flask-minimal-template)
