Skip to main content

Welcome to CFlow Documentation

CFlow is a multi-industry workforce management platform designed for internal staff and HR management. This documentation covers everything you need to develop, deploy, and maintain CFlow.

What is CFlow?

CFlow is a modern, full-stack workforce management solution built with:

  • Next.js 14 with App Router and TypeScript
  • Supabase for PostgreSQL database and authentication
  • Tailwind CSS with custom coral-themed glass morphism design
  • UK compliance for date/time formats and data protection

Key Features

FeatureDescription
Multi-Industry SupportGP Practice, Dental, Restaurant, Office templates
Staff ManagementComplete 6-tab employee profiles with skills and preferences
Shift SchedulingRoom-based calendar with drag-drop and conflict detection
Time TrackingClock in/out, breaks, timesheet submission
Leave ManagementRequest, approve, and track leave with balance tracking
Reporting9 report types with caching and export options
Multi-TenancySecure company isolation with Row Level Security

Documentation Sections

For Developers

Getting Started

Set up your local development environment and run CFlow for the first time.

Architecture

Understand the system design, technology stack, and architectural patterns.

API Reference

Complete documentation for all 68 API endpoints with examples.

Database

38 tables documented with relationships and Row Level Security policies.

For Operations

Deployment

Production deployment guides for Vercel and Supabase.

Security

Authentication, authorization, and data protection documentation.

User Roles

CFlow supports three distinct user roles:

RoleResponsibilities
System AdminPlatform management, company creation, user oversight
Company ManagerStaff, scheduling, leave, time tracking, reports
StaffPersonal schedule, timesheet, leave requests

Need Help?


Built with Next.js 14, Supabase, and TypeScript for UK-compliant workforce management.