How rafaelhgreco/rafael-app works
Project type and purpose
• This is a front-end single-page application (SPA) built with React, TypeScript, and Vite.
• It follows a layered (“Clean Architecture” / hexagonal) style: a UI/Presentation layer, an Application layer, a Domain layer, and an Infrastructure layer.
• Its goal is to fetch and display users via an HTTP API (mocked in development by Mock Service Worker).
File structure
• src/pages, src/components, src/hooks: Presentation/UI layer
• src/application/controller, src/application/services: Application layer
• src/domain: Domain layer (core business models/entities)
• src/infrastructure/api_client.ts, src/infrastructure/repositories, src/infrastructure/stores: Infrastructure layer (API adapter, data persistence, state management)
• src/mocks: mock API endpoint configuration for local development
• Root files (vite.config.ts, tsconfig*, eslint.config.js, Storybook) support build, linting, and component development/testing.
README
• Confirms minimal React+TS+Vite template with HMR, ESLint, optional SWC plugin.