How lawvia/pokeboi-v2 works
Project type and purpose
• This is a single-page, front-end React/TypeScript application built with Vite and Tailwind CSS.
• Purpose: A Poké-style interface (“Pokeboi V2”) that lets users view Pokémon data, catch and manage a party, battle, and view statistics.
• No back-end server or database is present—it operates on static data files under src/data and uses browser storage.
File structure
• Top-level configuration: vite.config.ts, tsconfig.json variants, tailwind.config.js, postcss.config.js, eslint.config.js.
• Entry point: index.html → main.tsx.
• Core application code under src:
• pages: high-level views (CatchPage, BattlePage, StatisticsPage)
• components: reusable UI organized by feature (pokemon, battle, catch, statistics, common, layout)
• hooks: custom React hooks encapsulating logic (useEncounter, useCatchPokemon, useStatisticsData, etc.)
• data: static data files (pokemon list, legendaryPokemon)
• utils: helper functions (battle logic, date formatting, localStorage wrapper, inventory management)
• types: TypeScript interfaces for Pokemon, party, statistics.
• styles: global CSS and utility classes.
• No server, but browser localStorage acts as a persistent store for caught Pokémon.
README for additional insights
• Confirms feature set: starter/legendary Pokémon, catching and party management, battling, statistics.
• Live demo link implies a static-hosted build.