Skip to content

A testbed for Datastar in Craft CMS: two-sided voting, score calculation, and real-time UX patterns without external JS frameworks.

License

handplant/Craft-CMS-Datastar-Duels

Repository files navigation

⚔️ Craft CMS - Datastar Duels

Versus is a minimalistic app built with Craft CMS and Datastar to let two things go head-to-head — and let the crowd decide. Whether it's tabs vs spaces, cats vs dogs, or light mode vs dark mode – anything can duel. The votes decide what's hot.

👉 See it live in action: versus.webworker.me

🛠️ Built with

🔥 Features

  • Fast and intuitive "vote for one" duels
  • Views for trending and newest duels (based on score and timestamp)
  • Dynamic Hot Score calculation (popularity + freshness)
  • Easy admin setup via Craft’s native section system
  • Datastar User login and registration
  • Datastar Voting system for duels
  • Datastar search and order functionality
  • Responsive and accessible design for all devices

🚀 Quick Start

This is a developer-focused experiment. Feel free to fork, explore, or adapt. If you find a bug or have an idea, create an issue on GitHub. Feedback and suggestions are welcome!

# Clone the repo
git clone https://github.com/handplant/Craft-CMS-Datastar-Duels.git

# Set up your .env and database
cp .env.example .env
# Adjust DB and URL settings

# Install Craft CMS
composer install
./craft setup

License

This project is open-sourced under the MIT license.

About

A testbed for Datastar in Craft CMS: two-sided voting, score calculation, and real-time UX patterns without external JS frameworks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published