Skip to content

CodeByMoonlight/Pokemon-API-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokemon Website

Table of Contents

Description

This Pokemon Website is a full-stack application that allows users to explore Pokemon details, manage custom stories for each Pokemon, and interact with the PokeAPI. The application provides a seamless user experience with a modern interface and robust backend functionality.

Frameworks and Technologies

  • Frontend: React
    • React is used to build the dynamic and interactive user interface. It manages state efficiently and provides a smooth user experience.
  • Backend: Express.js
    • Express.js is used to handle server-side logic, including API routes for CRUD operations and database interactions.
  • Database: SQLite
    • SQLite is used to store custom Pokemon stories locally.

Routes

Backend Routes

  • GET /pokemon
    • Fetches a list of Pokemon from the PokeAPI.
  • GET /pokemon/:id
    • Fetches details of a specific Pokemon, including its custom story if available.
  • POST /pokemon/:id/story
    • Creates or updates a custom story for a specific Pokemon.
  • DELETE /pokemon/:id/story
    • Deletes the custom story for a specific Pokemon and reverts to the original API story.

Frontend Routes

  • /
    • The homepage displaying a list of Pokemon. Users can browse through the list and select a Pokemon to view its details.
  • /view/:pokemonId
    • Displays detailed information about a specific Pokemon, including its stats, abilities, and custom story (if available).
  • /view/:pokemonId/update
    • Allows users to update or edit the custom story for the selected Pokemon.
  • /memory-game
    • A fun memory game featuring Pokemon cards. Users can test their memory skills by matching pairs of Pokemon.
  • /pokedex
    • Redirects to the first page of the Pokedex.
  • /pokedex/page/:pageNumber
    • Displays a paginated view of the Pokedex, allowing users to navigate through pages to explore all Pokemon.

Features

  • Pokemon Details: View detailed information about each Pokemon, including stats, abilities, and types.
  • Custom Stories: Add, edit, and delete custom stories for each Pokemon.
  • Integration with PokeAPI: Fetches real-time data about Pokemon from the PokeAPI.
  • Responsive Design: Ensures the website is accessible on various devices.

How to Run

  1. Clone the repository:
    git clone https://github.com/CodeByMoonlight/Pokemon-API-Website.git
  2. Navigate to the project directory:
    cd Pokemon-API-Website
  3. Install dependencies for both the client and server:
    cd client && npm install
    cd ../server && npm install
  4. Start the development servers:
    • For the client:
      npm run dev
    • For the server:
      npm run dev
  5. Open the application in your browser at http://localhost:5173/.

Acknowledgments

  • PokeAPI: For providing the Pokemon data used in this application.
  • React: For the powerful frontend framework.
  • Express.js: For the robust backend framework.

License

This project is licensed under the MIT License.

Academic Context

This website is a project developed for the ICE 415 subject. It demonstrates the integration of modern web development frameworks and APIs to create a functional and interactive application.

Contributors

  • Created By:
    • Alijah Valle
    • Abby Gale Señeres

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published