How brunonoatto/autolog-web works
Project type and purpose
• This is a single-page application (SPA) built with React, TypeScript, and Vite.
• It serves as a garage budgeting tool: garages create/approve budgets, clients view budgets and transfer cars, and the app integrates with an external “Fipe” service for vehicle data.
File structure
• Top-level build/dev files: package.json, tsconfig.json, vite.config.ts, buildspec.yaml, GitHub Actions workflows, ESLint/Prettier/Husky configs.
• Public assets: public/, index.html, index.css, tailwind.config.ts.
• Source code lives under src/:
• main.tsx & app.tsx bootstrap the React app
• core/ holds cross-cutting layers:
– api/ (an HTTP client and typed API wrappers per domain)
– models/ (TypeScript domain models)
– service/ (hooks and functions implementing business use cases)
– store/ (React Contexts and global state hooks)
– router/ (React Router wrappers & protected routes)
• layout/ contains the application chrome (headers, footers, menus)
• modules/ implements feature pages grouped by domain: auth, client, garage, landing, without-login flows
• shared/ contains reusable UI components, a design system, form validations, helpers, and types
• src/e2e/ holds Playwright end-to-end tests, fixtures, mocks, and pages
README for additional insights
• The README describes the underlying Vite + React + TS scaffold and hints at ESLint/CI best practices.