A full-stack financial management and intelligence application that automates transaction tracking through email processing, powered by AI for smart categorization and comprehensive spending analytics.
Fi-Mi-Cash was created to simplify financial management through automation. By combining email processing with AI categorization, it provides users with a clear, real-time view of their spending patterns and financial health.
Whether you're tracking personal expenses or managing business transactions, Fi-Mi-Cash turns raw financial data into actionable insights, helping you make informed financial decisions.
- Smart Email Processing: Automatically processes and categorizes transaction emails from your bank
- AI-Powered Categorization: Leverages OpenAI's GPT for intelligent transaction categorization
- Real-time Analytics: Dynamic financial summaries with spending patterns and trends
- Advanced Filtering: Filter transactions by date ranges and custom categories
- Responsive Design: Seamless experience across all devices
- Secure Authentication: OAuth 2.0 integration with Google for secure access to email data
Dashboard View
Dashboard screenshot coming soon
Transaction Analysis
Analysis screenshot coming soon
- FastAPI
- Python 3.8+
- OpenAI API
- Gmail API
- SQLite/PostgreSQL
- Pydantic for data validation
- SQLAlchemy ORM
- React 18
- TailwindCSS
- React Query for data fetching
- Headless UI components
- React DatePicker
- Recharts for data visualization
- Axios for API communication
- Python 3.8 or higher
- Node.js 14 or higher
- Gmail API credentials
- OpenAI API key
- PostgreSQL (optional, SQLite works for development)
- Clone the repository:
git clone https://github.com/fimicash/fi-mi-cash.git
cd fi-mi-cash- Set up Python virtual environment:
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows- Install dependencies:
pip install -r backend/requirements.txt- Configure environment variables:
cp .env.example .env
# Edit .env with your credentials- Run database migrations:
cd backend
alembic upgrade head- Run the backend:
uvicorn app.main:app --reload --port 8000- Navigate to frontend directory:
cd frontend- Install dependencies:
npm install- Configure environment (optional):
cp .env.example .env.local
# Edit .env.local with your settings- Start the development server:
npm start- Access the application at
http://localhost:3000
# API Configuration
API_V1_PREFIX=/api/v1
DEBUG=True
SECRET_KEY=your_secret_key_here
ALLOWED_ORIGINS=http://localhost:3000
# Database
DATABASE_URL=sqlite:///./app.db
# For PostgreSQL:
# DATABASE_URL=postgresql://user:password@localhost:5432/fimicash
# Authentication
OAUTH_CLIENT_ID=your_google_client_id
OAUTH_CLIENT_SECRET=your_google_client_secret
OAUTH_REDIRECT_URI=http://localhost:8000/api/v1/auth/callback
# OpenAI
OPENAI_API_KEY=your_openai_api_key
REACT_APP_API_URL=http://localhost:8000/api/v1
REACT_APP_AUTH_DOMAIN=localhost
/fi-mi-cash
βββ /backend
β βββ /alembic # Database migration scripts
β βββ /app
β β βββ /api # API endpoints
β β β βββ /v1 # API v1 routes
β β β βββ deps.py # Dependency injection
β β βββ /core # Core functionality
β β β βββ config.py # Application configuration
β β β βββ security.py # Authentication and security
β β β βββ logger.py # Logging configuration
β β βββ /db # Database modules
β β β βββ base.py # Base DB classes
β β β βββ session.py # DB session management
β β βββ /models # SQLAlchemy models
β β βββ /schemas # Pydantic schemas/models
β β βββ /services # Business logic
β β β βββ /email # Email processing services
β β β βββ /ai # AI categorization services
β β β βββ /analytics # Financial analytics services
β β βββ /tests # Test modules
β β βββ main.py # FastAPI application entrypoint
β βββ alembic.ini # Alembic configuration
β βββ requirements.txt # Python dependencies
βββ /frontend
β βββ /public # Static public assets
β βββ /src
β β βββ /assets # Images and static resources
β β βββ /components # React components
β β β βββ /common # Reusable components
β β β βββ /layout # Layout components
β β β βββ /charts # Visualization components
β β βββ /contexts # React contexts
β β βββ /hooks # Custom React hooks
β β βββ /pages # Page components
β β βββ /services # API services
β β βββ /types # TypeScript interfaces/types
β β βββ /utils # Utility functions
β β βββ App.tsx # Root component
β β βββ index.tsx # Entry point
β βββ package.json # Node.js dependencies
β βββ tsconfig.json # TypeScript configuration
βββ .env.example # Example environment variables
βββ .gitignore # Git ignore file
βββ docker-compose.yml # Docker composition
βββ README.md # This file
GET /api/v1/transactions/: Get transactions with filtering optionsGET /api/v1/transactions/{id}: Get transaction detailsPUT /api/v1/transactions/{id}: Update transaction (e.g., category)DELETE /api/v1/transactions/{id}: Delete transaction
- Email Access Issues: Ensure you've enabled the Gmail API in Google Cloud Console and authorized the correct scopes
- Database Connection Errors: Check your DATABASE_URL environment variable
- API Key Invalid: Verify your OpenAI API key is correct and has sufficient credits
- CORS Errors: Make sure the frontend URL is included in ALLOWED_ORIGINS
If you encounter issues:
- Check the Issues page for similar problems
- Enable debug mode for more detailed logs
- Create a new issue with detailed reproduction steps
# Backend tests
cd backend
pytest
# Frontend tests
cd frontend
npm test- Backend follows PEP 8 and uses Black for formatting
- Frontend uses ESLint with Airbnb config and Prettier
# Backend
cd backend
flake8 .
black --check .
# Frontend
cd frontend
npm run lintWe welcome contributions to Fi-Mi-Cash!
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please ensure your code follows our style guidelines and includes appropriate tests.
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for GPT API
- Google for Gmail API
- All contributors and users
Project Team - team@fimicash.dev
Project Link: https://github.com/fimicash/fi-mi-cash
- Multi-bank support
- Custom category creation
- Budget planning and tracking
- Expense predictions using AI
- Mobile app version
- Export reports in multiple formats
- Multi-currency support
- Automated bill detection and reminders