8000 GitHub - powersurge360/trivia_app: Trivia app built with Rails 7 and the OpenTrivia Database
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

powersurge360/trivia_app

Repository files navigation

Monster Trivia

This is a simple application that uses Rails 7, Hotwire, and the OpenTDB to build a multiplayer trivia game for up to four players. It's still in active development so it doesn't do that quite yet. Maybe it will grow up someday. It's also not particularly monster themed yet, but I was initially thinking to have the players have some monster tropes and maybe some monster mechanics. That's even further down the road, though.

Requirements

Native

  • Ruby 3.1.0
  • Bundler
  • Foreman (installed outside of the project, globally please)
  • Postgres
  • Redis

Docker Compose

  • Make sure you have docker installed on your system

Installation

  • Clone from github

Native

  • Copy dotenv to .env
  • Run bin/setup
  • Once everything has been installed, use bin/dev to run the tailwind build process, the sidekiq job queue, and the rails server in three different processes.
    • Alternatively, you can run these commands directly with bin/rails s, bin/rails tailwindcss:watch, and bin/sidekiq in three separate terminal instances
  • In development, run bin/guard to detect changes to files and run relevant specs. This will help assure that nothing is breaking.

Docker Compose

  • Copy dotenv to .env
  • Run docker compose build web to build the trivia_app image ahead of time (many utilities and tools depend on it)
  • Run docker compose run web bin/setup to set up the application
  • Run docker compose up to start the suite
    • Optionally run docker compose run web bin/guard to start the rspec watcher.

Use docker compose run rails spec to run specs

To install new dependencies, rebuild the web image with docker compose build web

⚠️: When using docker compose run, you will accumulate stopped containers over time. Consider using the --rm flag to automatically clean up after yourself. For example, docker compose run --rm guard.

About

Trivia app built with Rails 7 and the OpenTrivia Database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0