A modern, feature-rich task management application built with React, Next.js, and Supabase.
Inspired by Notion, this app provides a complete solution for managing tasks, daily reports, attendance tracking, and to-do lists.
- Task Manager β Create, update, and manage tasks with priority levels and status tracking.
- Daily Reports β Generate and track daily work reports with detailed notes.
- Attendance Tracking β Record and monitor attendance with multiple status options.
- To-Do List β Organize tasks by categories with quick completion tracking.
- Dashboard β Real-time overview of all activities and statistics.
- Dark/Light Mode β Seamless theme switching with persistent preferences.
- Responsive Design β Works perfectly on desktop, tablet, and mobile.
- Local Storage β Data persists for offline access.
- Real-time Sync β Automatic synchronization with Supabase.
- Authentication β Secure user login and session management.
- Data Visualization β Charts and graphs for reports and analytics.
- React 19
- Next.js 16 (App Router)
- Tailwind CSS v4
- Recharts, Lucide React, SWR
- Next.js API Routes
- Elysia (optional lightweight server)
- JWT Authentication
- Supabase (PostgreSQL)
- localStorage for offline support
task-manager-pro/
βββ app/
β βββ api/
β β βββ auth/
β β βββ tasks/
β β βββ reports/
β β βββ attendance/
β βββ auth/
β βββ layout.tsx
β βββ page.tsx
β βββ globals.css
βββ components/
β βββ ui/
β βββ dashboard.tsx
β βββ task-manager.tsx
β βββ report-harian.tsx
β βββ absensi.tsx
β βββ todo-list.tsx
β βββ sidebar.tsx
βββ hooks/
β βββ use-auth.ts
β βββ use-mobile.ts
βββ lib/
β βββ api-client.ts
β βββ db.ts
β βββ utils.ts
βββ public/
βββ scripts/
βββ server/- Node.js 18+ or Bun
- npm / yarn / pnpm / bun
- Supabase account (optional)
git clone https://github.com/siabang35/task_manager.git
cd task-manager
npm install
npm run devThen open http://localhost:3000 in your browser.
Create a .env.local file in the root directory:
NEXT_PUBLIC_SUPABASE_URL=https://example.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key_here
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key_here
JWT_SECRET=your_jwt_secret_here- Overview of all tasks, reports, and attendance.
- Create a new task.
- Set priority, due date, and status.
- Edit or delete tasks.
- Create daily report with completed tasks.
- Track report history.
- Record attendance with status.
- View attendance statistics.
- Add to-do items and mark as completed.
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/signup |
Register new user |
| POST | /api/auth/login |
User login |
| GET | /api/auth/me |
Get current user |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/tasks |
Get all tasks |
| POST | /api/tasks |
Create task |
| PUT | /api/tasks/[id] |
Update task |
| DELETE | /api/tasks/[id] |
Delete task |
CREATE TABLE users (
id UUID PRIMARY KEY,
email VARCHAR UNIQUE NOT NULL,
password_hash VARCHAR NOT NULL,
name VARCHAR,
created_at TIMESTAMP DEFAULT NOW()
);- Push to GitHub.
- Connect to Vercel.
- Add environment variables.
- Deploy.
- Netlify, Railway, Render, or self-hosted options available.
- JWT authentication
- HTTPS enforced
- Input validation & SQL injection prevention
- XSS protection
| Issue | Solution |
|---|---|
| Data not persisting | Check localStorage / browser cache |
| API errors | Verify .env setup and network status |
| Authentication failing | Check JWT secret and credentials |
- Fork the repository
- Create feature branch (
git checkout -b feature/awesome) - Commit changes (
git commit -m 'Add awesome feature') - Push branch (
git push origin feature/awesome) - Open Pull Request
Licensed under the MIT License β see LICENSE for details.
- Mobile app (React Native)
- Team collaboration
- Analytics & reporting
- Calendar integration
- Slack/Teams notifications
- AI task suggestions
- Automation workflows
- Initial release with all core modules.