A full-stack web application to track habits and expenses, built with Vite + React on the frontend and Hasura GraphQL on the backend.
It helps users manage daily habits, monitor expenses, and visualize their progress through a seamless and modern UI.
-
Frontend
- Vite β Lightning-fast build tool
- React β Component-based UI
- Apollo Client β State management & GraphQL queries/mutations
-
Backend
- Hasura GraphQL Engine β Instant GraphQL API over PostgreSQL
- PostgreSQL β Database layer
- π Habit Tracking β Add, update, and monitor daily habits.
- π° Expense Management β Log expenses with categories and timestamps.
- π Analytics & Insights β Visualize spending and habit trends.
- π Authentication-ready β Easy to integrate auth (e.g., Firebase, Auth0).
- β‘ Real-time Updates β Subscriptions powered by Hasura GraphQL.
habit-expense-tracker/
βββ client/ # Frontend (Vite + React + Apollo Client)
β βββ src/
β βββ public/
β βββ package.json
βββ server/ # Backend (Hasura configs + migrations)
β βββ migrations/
β βββ metadata/
β βββ docker-compose.yml
βββ README.md
git clone https://github.com/your-username/habit-expense-tracker.git
cd habit-expense-trackercd server
docker-compose up -dcd client
npm install
VITE_HASURA_GRAPHQL_ENDPOINT=http://localhost:8080/v1/graphql
VITE_HASURA_ADMIN_SECRET=youradminsecret
npm run dev- Add authentication & role-based access
- Improve analytics with charts (Recharts/ Chart.js)
- Export expense reports (CSV/PDFs)
- Responsive Design.