Ash is catching Pokémon in a world consisting of an infinite two-dimensional grid of houses. In each house there is exactly 1 Pokémon.
Ash starts by catching the Pokémon that are in the house where he starts. Then, he moves to the house immediately North (N), South (S), East (E) or West (O/W) from where he is and catches the Pokémon that is there, and so on.
Attention: if he passes a house where he has already passed (and, therefore, where he has already caught a Pokémon), there is no longer a Pokémon there for him to catch!
The setups steps expect following tools installed on the system.
- PostgreSQL 14
- Ruby 3.2.2
- Rails 7.0.4.3
- Puma 5
git clone https://github.com/claudioduarte/pokemon.git
or, if you prefer, via SSH (recommended)
git clone git@github.com:claudioduarte/pokemon.git
cd pokemon
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
If you run into problems after the installation, please run the following commands:
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/your_user/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
brew install rbenv
Add the following command to your ~/.zshrc file to make rbenv load automatically when you open up the Terminal.
eval "$(rbenv init -)" >> ~/.zshrc
Install Ruby 3.2.2 with the following command:
rbenv install 3.2.2
Set the ruby version in the project, rehash and then restart the terminal to apply the changes
rbenv local 3.2.2
rbenv rehash
When typing ruby -v
, this should be the version:
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin21]
brew install postgresql@14
gem install bundler -v '2.4.12'
bundle install
If an error occurs, run command with sudo
permissions
sudo bundle install
brew services start postgresql@14
bundle exec rake db:create
rails s
You can visit the website using the following URL: http://localhost:3000
rspec -fd
Licensed under the MIT License. ©2023 Cláudio Duarte