A premium, cloud-synced study dashboard that visualizes your daily FlowTrack data securely from a Neon PostgreSQL database β with a stunning glassmorphism UI.
- Overview
- Key Features
- The Study Ecosystem
- How It Works (Secure Backend)
- Premium UI/UX
- Deployment & Setup
- Views & Screens
- Tech Stack
- Author
- License
FlowTrack β Study Tracker Pro (Cloud Edition) is a premium read-only dashboard designed to visualize your daily study session data. It is seamlessly integrated with the Ultimate Master Study Tracker desktop app.
Instead of manually importing JSON files, this app connects securely to a Neon Serverless PostgreSQL Database through a Cloudflare Pages API. Your data syncs automatically, safely, and beautifully.
| Feature | Description |
|---|---|
| βοΈ Direct Cloud Sync | Fetches live data securely from your Neon PostgreSQL database via a Cloudflare Functions API endpoint |
| π‘οΈ 100% Secure Architecture | The database connection string is stored as a secret environment variable on Cloudflare, so your password is never exposed to the frontend |
| π¨ Premium Glassmorphism UI | Completely redesigned with colorful gradients, deep shadows (shadow-2xl), animated backdrops, and Framer Motion interactions |
| π Live Data Formatting | Automatically processes database records into structured Day/Session views for the UI |
| π Dashboard View | Quick stats, planned vs actual time, completion ratio, efficiency badge, subject progress bars, and a full session list |
| π Timeline View | Chronological visual timeline with animated status dots, pulse effect for in-progress sessions, and per-session progress bars |
| π Analytics View | Performance badge, SVG donut chart (time distribution), animated bar chart (planned vs actual), and per-subject efficiency breakdown |
| π΅ JSON-Driven Music Player | Play YouTube songs from your JSON ambience_playlist β draggable PiP video player via React Portal |
| π± Fully Responsive | Mobile-first design that scales from phones to ultra-wide desktops |
FlowTrack is one piece of a complete study workflow:
| Project | Purpose | Live Demo | Repository |
|---|---|---|---|
| πΈ Only Study Gallery | Daily study screenshots & proof gallery | only-study-gellery.pages.dev | GitHub |
| π My All Classes | Daily class-wise schedule sync dashboard | my-all-classes.pages.dev | GitHub |
| β‘ Ultimate Master Study Tracker | Precision timer, gamification & analytics engine | the-ultimate-master-study-tracker.vercel.app | GitHub |
To protect your database from hackers, we removed the insecure frontend database connections. Instead, we use Cloudflare Pages Functions.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 1. User visits https://my-all-classes.pages.dev/ β
β 2. Frontend React app calls `fetch('/api/data')` β
β 3. Cloudflare Pages Function (functions/api/data.ts) runs on server β
β 4. Function reads `NEON_DB_URL` secret environment variable securely β
β 5. Function uses @neondatabase/serverless to query Neon DB directly β
β 6. Data is returned to frontend as clean JSON β
β 7. Frontend formats and displays the premium glassmorphism UI β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Your database credentials remain 100% protected on Cloudflare's edge servers.
The interface has been upgraded to match the desktop app's premium feel:
- Container Styling:
bg-gradient-to-br from-slate-800/60 to-slate-900/60 - Glassmorphism: Heavy use of
backdrop-blur-xlandborder-white/[0.1] - Deep Shadows: Vibrant glowing drop-shadows using
shadow-2xl shadow-purple-500/10, emerald, and blue variants. - Animations: Extensive use of
framer-motionfor spring physics, micro-interactions, and page transitions.
- Node.js β₯ 18
- npm β₯ 9
- Cloudflare Account
- Neon Database
# 1. Clone the repository
git clone https://github.com/SudhirDevOps1/My-All-Classes.git
cd My-All-Classes
# 2. Install dependencies
npm install
# 3. Start the dev server
npm run dev
# 4. Build for production
npm run build(Note: To test the /api/data backend locally, you can use the Cloudflare Wrangler CLI: npx wrangler pages dev dist)
- Upload the repository to GitHub.
- In the Cloudflare Dashboard, go to Pages -> Create a project -> Connect to Git.
- Select this repository.
- Set the build command to
npm run buildand output directory todist. - CRITICAL STEP: Set Environment Variables
- In Cloudflare Pages, go to Settings -> Environment variables.
- Add a variable named
NEON_DB_URL. - Paste your Neon PostgreSQL connection string (
postgresql://neondb_owner:password@ep-something.aws.neon.tech/neondb...). - Click Encrypt to protect it, then save.
- Click Save and Deploy. Your app will automatically fetch your live data securely!
- Quick Stats row β total study time, completion %, session count, efficiency %
- Stat cards β planned time, actual time, done ratio, overall progress (with live trend dots)
- Subject Progress β animated per-subject completion bars inside premium glowing containers
- Today's Schedule β every session with status, times, planned vs actual, and progress
- Sessions sorted chronologically along an animated gradient line
- Status-colored dots with a pulse animation for in-progress sessions
- Performance badge β dynamic rewards based on efficiency tiers
- Summary cards β total sessions, completion rate, overall efficiency
- Time Distribution β pure SVG donut chart of planned minutes per subject
- Subject Details β per-subject planned, actual, and color-coded efficiency percentage
| Layer | Technology |
|---|---|
| UI Framework | React 19 |
| Language | TypeScript 5 |
| Build Tool | Vite 7 |
| Styling | Tailwind CSS 4 |
| Animation | Framer Motion |
| Backend API | Cloudflare Pages Functions (functions/api/data.ts) |
| Database Driver | @neondatabase/serverless |
Sudhir β @SudhirDevOps1
| π Tracker | the-ultimate-master-study-tracker.vercel.app |
| π Class Data | my-all-classes.pages.dev |
| πΈ Proof Gallery | only-study-gellery.pages.dev |
If this project helps you stay consistent, please consider giving it a β on GitHub!
Free and open-source. Use it, fork it, learn from it, build on it.