Skip to content

pstrzalk/ruby-on-rails-game

Repository files navigation

Ruby on Rails - the Game

This application is the subject of workshops organized for Ruby Warsaw Community Conference 2024. It tells an intense story of a love interrupted by evil magic. Will the Prince David rescue Princess Ruby?

Rails World 2024

The game and its concepts were presented at Rails World 2024 in Toronto. You can find the slides in this presentation

A special version of the game, with updated graphics and logic was prepared for it, you can find it in rails-world branch.

Disclaimer

This code was created for fun and for fun only. It has obvious design flaws and is not perfect by any standards. But it was awesome to write and to share with all Ruby fans.

Installation

To run the game, you need to have PostgreSQL and Redis.

# Clone the repository
$ git clone https://github.com/pstrzalk/ruby-on-rails-game
$ cd ruby-on-rails-game

# Install gems
$ bundle

# Create database and run migrations
$ bin/setup

# Run game server
$ bin/dev

# [In another terminal] Run game loop
$ rails game:run

# Open in a browser
$ open http://localhost:3000

Alternatively, you may use Docker Compose - just use the provided configuration.

Testing

This application uses Minitest library for testing purposes. Run the following instruction and always keep the overall test coverage at 100% (and beyond).

$ rails test

Keep the code readable

The application uses Rubocop as code linter. Please run

$ rubocop

and keep the output free of offenses.

Have fun

Is obligatory!

About

Game written purely in Ruby on Rails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published