OneFlow is a modular Project Management system designed for financial precision and operational clarity. It seamlessly integrates project planning, execution tracking, and automated billing into a unified, high-performance platform.
- Overview
- Core Features
- Architecture
- Tech Stack
- Project Structure
- Getting Started
- Database Layer
- Deployment
- License
OneFlow addresses the fragmentation between project management and financial accounting. By bridging the gap from "Plan" to "Bill," it provides real-time visibility into project profitability, resource allocation, and cash flow.
It emphasizes:
- Financial Integrity: Real-time KPI tracking and automated invoice generation.
- Operational Clarity: Role-based access for Admins, Project Managers, and Team Members.
- Surgical Precision: Modular architecture built for extensibility and performance.
- Integrated Billing: Direct conversion of timesheets and expenses into client invoices.
- Role-Based Workflows: Tailored dashboards for different organizational roles.
- Real-time Analytics: Live tracking of project margins and resource utilization.
- OCR-Powered Expense Management: Automated data extraction from vendor bills.
- Secure Onboarding: Robust invitation system and bulk user import capabilities.
OneFlow follows a modern, layered architectural pattern:
| Layer | Responsibility |
|---|---|
| UI (React / Next.js) | Responsive, editorial-grade interface with Prometheus design system. |
| Business Logic | Server-side validation, workflow orchestration, and financial calculations. |
| Data Access (Prisma) | Type-safe database queries and automated migrations. |
| Operational Scripts | Maintenance utilities for data seeding and system health checks. |
- Framework: Next.js 15+ (App Router)
- Styling: Tailwind CSS 4
- ORM: Prisma
- Database: PostgreSQL
- Auth: Custom JWT-based authentication
- OCR: OCR Space API integration
- Mailing: Nodemailer
.
├── prisma/ # Database schema and migration history
├── public/ # Static assets and system icons
├── scripts/ # Operational and maintenance scripts
└── src/
├── app/ # Next.js routes and API endpoints
├── components/ # Reusable UI components (Prometheus DS)
├── hooks/ # Custom React hooks for state management
└── lib/ # Core utilities, auth, and database client
- Node.js ≥ 20.x
- pnpm ≥ 9.x
- PostgreSQL instance
git clone https://github.com/your-repo/one-flow.git
cd one-flow
pnpm installCreate a .env file in the root directory:
DATABASE_URL="postgresql://user:password@host:port/dbname"
JWT_SECRET="your-secure-jwt-secret"
NEXT_PUBLIC_APP_URL="http://localhost:3000"
# Optional: Email & OCR
EMAIL_USER="your-email@example.com"
EMAIL_APP_PASSWORD="your-app-password"
OCR_SPACE_API_KEY="your-api-key"pnpm db:setup
pnpm devOneFlow uses Prisma as its primary ORM. The schema is optimized for relational integrity between tasks, timesheets, and financial documents.
- Migrations: Managed via
prisma migrate. - Seeding: Initialized via
prisma/seed.jsfor base roles and system defaults.
OneFlow is optimized for deployment on Vercel.
- CI/CD: Automatic deployments on push to
main. - Post-Deploy: Ensure
pnpm prisma migrate deployis part of the build pipeline.

