Explore the world of Pokémon with our modern Pokédex. A feature-rich Pokédex where users can explore, search, and interact with Pokémon data fetched from the Pokémon API. This app also allows users to favorite Pokémon, vote for the "roundest" Pokémon, and view a leaderboard of the voting results.
- Browse Pokémon data fetched dynamically from the official Pokémon API.
- View detailed information about each Pokémon.
- Search for Pokémon by name, type, or other attributes.
- Use multiple filters to narrow down results.
- Add Pokémon to your favorites list for quick access.
- Participate in voting to select the "roundest" Pokémon.
- View the results of voting in a leaderboard.
- See the rankings of Pokémon based on user votes.
- Track which Pokémon are the most loved and roundest in the community.
- Using necessary and required metadata tags for SEO support for the website.
- Language: TypeScript
- Frontend: Next.js, React.js, TailwindCSS, Shadcn UI
- Backend: Prisma, PostgreSQL
- API: Pokémon API
- Runtime and Package Manager: Bun
-
Clone the repository:
git clone https://github.com/Kei-K23/poke-next.git cd poke-next
-
Install dependencies:
pnpm install
-
Set up the environment variables: Create a
.env
file in the root directory and add the following:DATABASE_URL=postgresql://<username>:<password>@<host>:<port>/<database>
-
Run database migrations:
pnpm prisma migrate dev
-
Start the development server:
pnpm dev
- Open the app in your browser at http://localhost:3000.
- Explore Pokémon, use filters, favorite your top picks, and vote for the roundest Pokémon!
- Check out the leaderboard to see which Pokémon are leading the votes.
poke-next/
├── prisma/ # Prisma schema and migrations
├── public/ # Static assets
├── src/
│ ├── components/ # React components
│ ├── pages/ # Next.js pages
│ ├── lib/ # Utility functions and API integrations
│ ├── context/ # Context data for pokemon (including initial fetching pokemon data)
└────────
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature-name
- Commit your changes and push to your fork:
git commit -m "Add your message" git push origin feature-name
- Open a pull request to the main repository.
This project is licensed under the MIT License.
- Pokémon API for Pokémon data.
For any inquiries or issues, feel free to reach out via the repository's Issues section.