Skip to content

About

πŸ“… Daily study schedule: AI/ML 2h + Web 2h + Java 2h + English 1h + Assignment 2h

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

31 Commits

Folders and files

Repository files navigation

⚑ FlowTrack β€” Study Tracker Pro (Cloud Edition)

A premium, cloud-synced study dashboard that visualizes your daily FlowTrack data securely from a Neon PostgreSQL database β€” with a stunning glassmorphism UI.

React TypeScript Vite Cloudflare Pages Neon Database


πŸ“– Table of Contents


🌟 Overview

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.


✨ Key Features

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

🌐 The Study Ecosystem

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

βš™οΈ How It Works (Secure Backend)

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.


πŸ’Ž Premium UI/UX

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-xl and border-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-motion for spring physics, micro-interactions, and page transitions.

πŸš€ Deployment & Setup

Prerequisites

  • Node.js β‰₯ 18
  • npm β‰₯ 9
  • Cloudflare Account
  • Neon Database

1. Local Development

# 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)

2. Deploying to Cloudflare Pages

  1. Upload the repository to GitHub.
  2. In the Cloudflare Dashboard, go to Pages -> Create a project -> Connect to Git.
  3. Select this repository.
  4. Set the build command to npm run build and output directory to dist.
  5. 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.
  6. Click Save and Deploy. Your app will automatically fetch your live data securely!

πŸ–₯️ Views & Screens

πŸ“Š Dashboard

  • 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

πŸ•’ Timeline

  • Sessions sorted chronologically along an animated gradient line
  • Status-colored dots with a pulse animation for in-progress sessions

πŸ“ˆ Analytics

  • 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

πŸ› οΈ Tech Stack

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

πŸ‘¨β€πŸ’» Author

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!


πŸ“œ License

Free and open-source. Use it, fork it, learn from it, build on it.

About

πŸ“… Daily study schedule: AI/ML 2h + Web 2h + Java 2h + English 1h + Assignment 2h

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages