A sleek, modern expense management system designed specifically for solar installation teams. Built with React 19, Vite, and Tailwind CSS.
- Role-Based Access Control: Separate interfaces for Owners and Workers.
- Worker Management: Add workers, manage balances, and track their spending history.
- Site Tracking: Manage solar installation sites, track project costs, and calculate profits in real-time.
- Daily Overhead: Log general expenses like fuel, food, and maintenance.
- Audit System: Detailed monthly and annual financial summaries for owners.
- Luxury UI: Dark-themed, high-contrast interface with interactive charts and toast notifications.
- React 19: Modern UI development.
- Vite: Ultra-fast build tool and dev server.
- Tailwind CSS: Luxury styling with a custom "Night & Gold" theme.
- Lucide React: Beautiful, consistent iconography.
- Zod: Robust client-side data validation.
-
Clone the repository:
git clone <your-repo-url> cd expense-tracker-frontend
-
Install dependencies:
npm install
-
Configure Environment Variables: Create a
.envfile in the root directory:VITE_API_URL=http://localhost:5000/api
-
Run in development mode:
npm run dev
-
Build for production:
npm run build
This project is pre-configured for deployment on Netlify.
- GitHub Connection: Push your code to GitHub.
- Netlify Setup:
- Build Command:
npm run build - Publish Directory:
dist
- Build Command:
- Environment Variables:
- Add
VITE_API_URLpointing to your deployed backend (e.g.,https://your-api.com/api).
- Add
- Routing: The
public/_redirectsfile is already included to handle SPA routing.
- JWT tokens are stored in
localStoragefor session persistence. - Ensure your backend
CORS_ORIGINmatches your Netlify domain once live. - Always use HTTPS in production.
Private Project. All rights reserved.