Skip to content

dgp336/onepiece-card-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

One Piece Card Explorer πŸ΄β€β˜ οΈ

Application to explore, filter, and browse One Piece TCG cards with database persistence.

πŸš€ Main Features

  • Card loading from a remote JSON source into the backend.
  • Card persistence in PostgreSQL.
  • Global search and combinable filters (set, name, type, color, cost, trait, and counter).
  • Card detail view in a modal.
  • REST API to handle data reload and cleanup.

🧱 Architecture (3 Containers)

The project runs with Docker Compose and is composed of three services:

  1. Database (postgresql_database)

    • Image: postgres:16
    • Port: 5432
    • Stores cards and related data.
  2. Backend (onepiece-backend)

    • Spring Boot + JPA
    • Port: 8080
    • Exposes the API (/api) and loads cards into the database.
    • CardDataLoaderService.java downloads .json file containing all the cards.
  3. Frontend (onepiece-frontend)

    • Vite + JavaScript
    • Port: 3000
    • Consumes the backend API and renders the search/filter interface.

πŸ› οΈ Technology Stack

  • Frontend: Vite, JavaScript, CSS.
  • Backend: Java 21, Spring Boot, Spring Data JPA.
  • Database: PostgreSQL 16.
  • Infrastructure: Docker, Docker Compose.

πŸ“¦ Project Structure

onepiece-card-manager/
β”œβ”€β”€ backend/optcg/           # API Spring Boot
β”œβ”€β”€ frontend/optcg/          # Web application (Vite)
β”œβ”€β”€ scripts/                 # Docker Compose and helper scripts
β”œβ”€β”€ README.md                # Documentation

▢️ Run with Docker

From the project root:

cd scripts
sudo docker compose up -d --build

Available services:

πŸ”„ Card Management

Useful endpoints:

  • Reload cards: POST http://localhost:8080/api/cards/reload-data
  • Clear cards: DELETE http://localhost:8080/api/cards/clear-all
  • Fetch cards: GET http://localhost:8080/api/cards

πŸ“„ License

Project licensed under MIT. See LICENSE.md.


Developed by David Granados PΓ©rez (2026).

About

πŸƒ Full-stack web application to manage and explore One Piece TCG cards.Built with Angular, Spring Boot, and PostgreSQL. Open Source project.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors