This section covers building the frontend application using Vue 3, TypeScript, and modern tooling.
- Vue 3: Progressive JavaScript framework
- TypeScript: Type-safe JavaScript
- Vite: Fast build tool and dev server
- Vue Router: Client-side routing
- Pinia: State management
- Axios: HTTP client for REST API calls
- Apollo Client: GraphQL client
frontend/
├── src/
│ ├── views/ # Page components
│ ├── components/ # Reusable components
│ ├── stores/ # Pinia stores
│ ├── types/ # TypeScript type definitions
│ ├── App.vue # Root component
│ └── main.ts # Application entry point
├── package.json # Dependencies and scripts
├── vite.config.ts # Vite configuration
└── index.html # HTML template
- Composition API with
<script setup> - TypeScript integration
- Single File Components (SFC)
- REST API calls using Axios
- GraphQL queries using Apollo Client
- Proxy configuration for development
- Vue Router 4 with history mode
- Route-based code splitting
- Navigation guards
# Install dependencies
cd frontend && npm install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run previewconst response = await axios.get('/api/users')
const users = response.dataconst { result } = await useQuery(GET_USERS)
const users = result.value?.users || []Continue to Backend Development to learn about the Golang API server.