Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Frontend

Overview

The frontend is a React application bootstrapped with Vite. It provides the user interface for creating, reviewing, and filing tax returns.

Project Layout

frontend/
  src/
    components/      # Reusable UI components
    pages/           # Page-level components (routes)
    services/        # API client functions
    hooks/           # Custom React hooks
    context/         # React context providers
    types/           # TypeScript type definitions
    App.tsx          # Root component
    main.tsx         # Entry point
  public/            # Static assets
  package.json
  vite.config.ts

Key Dependencies

  • react + react-dom - UI framework
  • react-router-dom - Client-side routing
  • axios - HTTP client
  • typescript - Type safety

Pages

RoutePageDescription
/HomeDashboard with return list
/returns/newNew ReturnTax return input form
/returns/:idReturn DetailView a single return
/returns/:id/reviewFinish and FileReview and submit the return
/returns/:id/printPrintPrintable/downloadable return view

Development

cd frontend
npm install
npm run dev

Building for Production

npm run build

Output goes to frontend/dist/.