An expense tracker that uses smart text parsing to add transactions quickly.
Tracking money usually means filling out long forms with dates, amounts, categories, and titles. This app tries to fix that by letting you just type what happened, like "spent 15 on lunch" or "earned 50 from selling books". It figures out the amount, title, and whether it's an income or expense automatically. It also gives you a dashboard to search through everything.
- Frontend: React
- Styling: Tailwind CSS
- Backend: Node.js / Express
- Database: SQLite
- Authentication: JWT + bcrypt
- Smart Text Parsing: Type a sentence and the app will extract the transaction details (currency symbols/words are cleanly filtered out).
- User Authentication: Sign up and log in securely.
- Live Real-Time Search: Search your transactions instantly as you type.
- Role-Based Admin Dashboard:
- Dedicated Admin View: Admin users (Login:
admin/ Password:admin) are automatically routed to a secure dashboard and isolated from normal personal finance views. - User Search & Management: Quickly search for registered users by name and delete accounts if necessary.
- User Detail Drill-down: Click on any user to view their specific activity logs and personal transaction history.
- Dedicated Admin View: Admin users (Login:
project-root/
|-- server/
| |-- database.sqlite # The SQLite database file
| |-- server.js # The Express API backend
| |-- .env # Environment variables (you need to create this)
| |-- package.json # Backend dependencies
|-- src/
| |-- components/ # React components (Dashboard, AdminPanel, Auth, etc.)
| |-- App.jsx # Main React application
| |-- index.css # Tailwind CSS styles
| |-- main.jsx # React entry point
|-- index.html # Main HTML file
|-- package.json # Frontend dependencies
|-- tailwind.config.js # Tailwind configuration
|-- vite.config.js # Vite configuration
- Open your terminal and navigate to the
serverfolder, then run:npm install
- Important: Create a file named
.envinside theserverfolder and paste this exact line into it:(This is required because the file is ignored by Git for security).JWT_SECRET=assignment2_super_secret
- Start the backend server by running:
node server.js
- Open a new terminal window, navigate to the root project folder (not the server folder), and run:
npm install npm run dev
- Click the local link provided by Vite (usually
http://localhost:5173) to open the app.