An exploration game written in ruby, rails and node. Made to run on a raspberry.
User a version bundler to load proper Ruby and Node versions. Until we will support devcontainers, that's all you need to do to run the project locally.
Suggestion: if you still don't have any tool version manager, you can install asdf
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
Restart your shell
asdf install ruby
asdf install nodejs
Restart your shell again.
Make sure you're using ruby 3.2.1 and nodejs 18.4.0. Use ruby -v
and node -v
to double check.
gem install -g
npm install
bundle install
rake db:setup
rake db:migrate
Open a Rails console
rails console
require 'active_record/fixtures'
ActiveRecord::FixtureSet.create_fixtures(Rails.root.join('test', 'fixtures'), 'zones')
ActiveRecord::FixtureSet.create_fixtures(Rails.root.join('test', 'fixtures'), 'climates')
rails server
Then, you could head to the two main urls:
- List of zones You can click on links to move on the map and see the distribution changes
- List of climates to add more outside the main bounds. If you add a very different one outside bounds, moving on the map will slowly fade the zone tiles from one to the other.