Welcome to my Pokedex, a Ruby on Rails application that allows users to explore and interact with the first generation of Pokémon. This project uses PokéAPI, a public API that provides data about Pokémon.
-
View Pokémon Details: Users can browse a list of Pokémon, view their attributes (height, weight, types), and view their official artwork and shiny version.
-
Trainer Profiles: Explore the profiles of various Pokémon trainers, called Trainers, each with a unique team of Pokémon.
-
Pokémon Cards: Each Pokémon can have an associated trading card image that users can view.
Make sure you have the following installed:
- Ruby (version 2.7.0 or later)
- Rails (version 6.0 or later)
- PostgreSQL (for database management)
- Bundler
- Clone the repository:
git clone https://github.com/your-username/pokedex-project.git
cd pokedex-project
- Install dependencies:
bundle install
- Configure the database: Create and migrate the database:
rails db:create
rails db:migrate
- Boot the database: Populate the database with Pokémon and Trainers by running the script seed:
rails db:seed
Start the Rails server:
rails server
Visit http://localhost:3000
in your browser to view the application.
- name : Name of the Pokémon.
- height : Height of the Pokémon.
- weight : Weight of the Pokémon.
- types : Types (e.g. Fire, Water) associated with the Pokémon.
- url : URL to the official Pokémon artwork.
- shiny_url : URL to the shiny version of the official artwork.
- pokedex_numero : Unique Pokedex number of the Pokémon.
- card_url : URL to the Pokémon trading card image.
- dresser_id : ID linking the Pokémon to a specific Dresser.
- name : Name of the dresser.
- description : Description of the dresser.
- url : URL of the dresser image.