Calypso Frontend
React + Vite + TypeScript frontend for AtlasOS - Calypso backup appliance.
Prerequisites
- Node.js 18+ and npm
- Backend API running on
http://localhost:8080
Setup
- Install dependencies:
npm install
- Start development server:
npm run dev
The frontend will be available at http://localhost:3000
Build
npm run build
The production build will be in the dist/ directory.
Project Structure
src/api/- API client and queriessrc/components/- Reusable UI componentssrc/pages/- Page componentssrc/store/- Zustand state managementsrc/types/- TypeScript type definitionssrc/utils/- Utility functions
Features
- ✅ React 18 with TypeScript
- ✅ Vite for fast development
- ✅ TailwindCSS for styling
- ✅ TanStack Query for data fetching
- ✅ React Router for navigation
- ✅ Zustand for state management
- ✅ Axios for HTTP requests
- ⏳ WebSocket for real-time events (coming soon)
- ⏳ shadcn/ui components (coming soon)
Development
The Vite dev server is configured to proxy API requests to the backend:
/api/*→http://localhost:8080/api/*/ws/*→ws://localhost:8080/ws/*
Next Steps
- Install shadcn/ui components
- Implement WebSocket client
- Build out all page components
- Add charts and visualizations
- Implement real-time updates