{"id":24518162,"url":"https://github.com/michelia5/pokedexmanager-backend","last_synced_at":"2026-04-24T22:37:50.917Z","repository":{"id":270907936,"uuid":"906364251","full_name":"Michelia5/PokedexManager-Backend","owner":"Michelia5","description":"Back-end per il progetto Pokedex Manager, sviluppato in Java con Javalin. Gestisce l'autenticazione, la registrazione e la comunicazione con un database per fornire funzionalità come ricerca e gestione delle collezioni.","archived":false,"fork":false,"pushed_at":"2025-02-23T12:10:01.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T01:45:19.331Z","etag":null,"topics":["authentication","backend","java","javalin","jdbc","mysql","pokedex-manager","pokemon"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Michelia5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-20T18:26:36.000Z","updated_at":"2025-02-23T12:10:05.000Z","dependencies_parsed_at":"2025-02-23T12:23:09.479Z","dependency_job_id":"4a486d2f-98a6-46c4-b477-dde51881c4a9","html_url":"https://github.com/Michelia5/PokedexManager-Backend","commit_stats":null,"previous_names":["michelia5/pokedexmanager-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Michelia5/PokedexManager-Backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Michelia5%2FPokedexManager-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Michelia5%2FPokedexManager-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Michelia5%2FPokedexManager-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Michelia5%2FPokedexManager-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Michelia5","download_url":"https://codeload.github.com/Michelia5/PokedexManager-Backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Michelia5%2FPokedexManager-Backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32243764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","backend","java","javalin","jdbc","mysql","pokedex-manager","pokemon"],"created_at":"2025-01-22T01:39:23.251Z","updated_at":"2026-04-24T22:37:50.902Z","avatar_url":"https://github.com/Michelia5.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PokedexManager-Backend\n\nIl backend del progetto **PokedexManager** fornisce un'API per gestire, esplorare e organizzare i Pokémon. È costruito con **Javalin** e utilizza **MySQL** per la persistenza dei dati.\n\n## **Caratteristiche Principali**\n- Autenticazione e gestione utenti con **JWT**.\n- Endpoint per gestire collezioni personali di Pokémon e liste dei desideri.\n- API per esplorare dettagli e statistiche sui Pokémon.\n- Gestione completa delle evoluzioni Pokémon.\n\n## **Tecnologie Utilizzate**\n- **Javalin**: Framework web leggero per Java.\n- **MySQL**: Database relazionale per la persistenza dei dati.\n- **JWT**: Autenticazione sicura tramite token.\n- **Maven**: Strumento per la gestione delle dipendenze e la build del progetto.\n\n## **Requisiti di Sistema**\n- **Java Development Kit (JDK)**: Versione 11 o superiore.\n- **Apache Maven**: Versione 3.6.0 o superiore.\n- **MySQL Server**: Porta predefinita 3306.\n\n## **Setup del Progetto**\n\n### **1. Clona il Repository**\n```bash\ngit clone https://github.com/Michelia5/PokedexManager-Backend.git\ncd PokedexManager-Backend\n```\n### 2. Configura il Database\n- **Crea un database MySQL denominato pokedex_v2.\n- **Importa il dump del database:\n```bash\nmysql -u tuo_utente -p pokedex_v2 \u003c \"DB Dump/pokedex_v2.sql\"\n```\n### 3. Configura le Credenziali del Database\n- **Crea un file .env nella root del progetto e aggiungi le seguenti righe con le tue credenziali:\n```bash\nDB_URL=jdbc:mysql://localhost:3306/pokedex_v2\nDB_USER=tuo_username\nDB_PASS=tuo_password\n```\n\n## **Avvio del Progetto**\n\n### **1. Compilazione ed Esecuzione**\nUtilizza Maven per compilare ed eseguire l'applicazione:\n```bash\nmvn clean install\nmvn exec:java -Dexec.mainClass=com.infobasic.App\n```\n### 2. Accesso al Backend\nL'applicazione sarà accessibile all'URL predefinito:\n```bash\nhttp://localhost:7000\n```\n\n## **Endpoint Principali**\n\n### **Utenti**\n- **POST /register**: Registra un nuovo utente.\n- **POST /login**: Autentica un utente e restituisce un token JWT.\n\n### **Pokémon**\n- **GET /pokemon**: Restituisce la lista dei Pokémon.\n- **GET /pokemon/{id}**: Restituisce i dettagli di un Pokémon specifico.\n\n### **Collezioni**\n- **GET /collections**: Restituisce i Pokémon della collezione personale.\n- **POST /collections**: Aggiunge un Pokémon alla collezione personale.\n- **DELETE /collections**: Rimuove un Pokémon dalla collezione.\n- **PUT /collections**: Aggiorna lo stato di un Pokémon nella collezione.\n\n\n## **Struttura del Progetto**\n- **controller/**: Contiene i controller per gestire le richieste HTTP.\n- **dao/**: Strato di accesso ai dati con implementazioni specifiche per MySQL.\n- **model/**: Modelli di dati (es. Pokémon, Utenti, Collezioni).\n- **service/**: Logica di business.\n- **util/**: Utilità come la gestione dei token JWT.\n\n## **DDL/DML e Dump del Database**\nGli script di creazione delle tabelle (DDL) e i dati iniziali sono forniti in:\n```bash\n/Database/ \n├── pokedex_v2.sql \n├── collections.csv \n├── pokemon_data.csv \n└── users.csv\n```\n\n## **Note**\n- Un profilo utente di default è già presente per il login:\n  - **Username**: User\n  - **Password**: password123\n- È comunque possibile registrare nuovi utenti tramite l'endpoint **POST /register**.\n- La porta predefinita per il backend è **7000**. Assicurati che non ci siano conflitti con altre applicazioni.\n- La connessione al database utilizza la porta **3306**, configurabile nel file `application.properties`.\n\n## **Contatti**\nPer domande o supporto, puoi contattare il manutentore del progetto:\n\n**Michele**  \nEmail: michele.caniglia5@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichelia5%2Fpokedexmanager-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichelia5%2Fpokedexmanager-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichelia5%2Fpokedexmanager-backend/lists"}