A modern, full-featured task and event management web application built with React and PHP. Web Planner helps you organize your work, manage tasks, and schedule events with a beautiful, intuitive interface.
- Create, Edit, and Delete Tasks - Full CRUD operations for task management
- Priority Levels - Categorize tasks as Low, Medium, or High priority
- Categories - Organize tasks into Work, Personal, Shopping, Health, and Other
- Status Tracking - Track tasks through To Do, In Progress, and Completed states
- Due Dates & Times - Set deadlines with optional time specifications
- Search & Filter - Quickly find tasks with real-time search and filtering
- Sort Options - Sort by due date, priority, or title
- Overdue Detection - Automatic highlighting of overdue tasks
- Interactive Monthly Calendar - Visual calendar grid with event display
- Event Types - Meeting, Deadline, Reminder, Appointment, and Personal events
- Color-Coded Events - Each event type has a distinct color for easy identification
- Event Details - Add title, description, location, date, time, and reminders
- Quick Navigation - Jump to today or navigate months easily
- Upcoming Events List - See all upcoming events at a glance
- Overview Statistics - Total tasks, completed, pending, and events counts
- Today's Tasks - Quick view of tasks due today
- Recent Events - Latest events and appointments
- Visual Stats - Beautiful stat cards with icons and animations
- Secure Login - User authentication with session management
- Registration - Create new accounts with email (optional)
- Session Persistence - Stay logged in across browser sessions
- Logout - Secure logout functionality
- Dark Theme - Beautiful gradient dark theme with glass-morphism effects
- Responsive Design - Works perfectly on desktop, tablet, and mobile devices
- Smooth Animations - Elegant transitions and hover effects
- Glassmorphism - Modern frosted glass effect throughout the interface
- Custom Scrollbars - Styled scrollbars matching the theme
- Loading States - Professional loading indicators
- React 18 - Modern React with Hooks
- Bootstrap 5.3 - Responsive grid and components
- Bootstrap Icons - Icon library
- Custom CSS - Advanced styling with CSS variables and animations
- Babel - JSX transformation in the browser
- PHP 8.0+ - Server-side logic
- MySQL 8.0 - Database management
- PDO - Secure database connections
- RESTful API - Clean API architecture
- Laragon - Local development server
- Apache - Web server
- phpMyAdmin - Database management
Before you begin, ensure you have the following installed:
- Laragon (includes Apache, PHP, MySQL)
- PHP 8.0 or higher
- MySQL 8.0 or higher
- Modern web browser (Chrome, Firefox, Safari, Edge)
git clone https://github.com/yourusername/web-planner.git
cd web-plannerOption A: Using the SQL file
- Open phpMyAdmin (http://localhost/phpmyadmin)
- Create a new database named
web_planner - Import the
database/web_planner.sqlfile
Option B: Manual Setup
CREATE DATABASE web_planner;
USE web_planner;
-- Users table
CREATE TABLE users (
id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(50) UNIQUE NOT NULL,
password VARCHAR(255) NOT NULL,
email VARCHAR(100),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- Sessions table
CREATE TABLE sessions (
id VARCHAR(64) PRIMARY KEY,
user_id INT NOT NULL,
expires_at DATETIME NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);
-- Tasks table
CREATE TABLE tasks (
id INT PRIMARY KEY AUTO_INCREMENT,
user_id INT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
due_date DATE,
due_time TIME,
priority ENUM('low', 'medium', 'high') DEFAULT 'medium',
category ENUM('work', 'personal', 'shopping', 'health', 'other') DEFAULT 'work',
status ENUM('todo', 'in-progress', 'completed') DEFAULT 'todo',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);
-- Events table
CREATE TABLE events (
id INT PRIMARY KEY AUTO_INCREMENT,
user_id INT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
start_datetime DATETIME NOT NULL,
end_datetime DATETIME NOT NULL,
location VARCHAR(255),
color VARCHAR(7) DEFAULT '#3b82f6',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);
-- Create demo user (password: demo123)
INSERT INTO users (username, password, email) VALUES
('demo', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'demo@example.com');Edit api/config/auth.php if needed:
private $host = 'localhost';
private $dbname = 'web_planner';
private $username = 'root';
private $password = ''; // Default Laragon password is empty- Open Laragon
- Click "Start All"
- Navigate to
http://localhost/web/prive%20projecten/web%20planner/
web-planner/
โโโ api/ # Backend API
โ โโโ auth/ # Authentication endpoints
โ โ โโโ index.php
โ โโโ tasks/ # Task management endpoints
โ โ โโโ index.php
โ โโโ events/ # Event management endpoints
โ โ โโโ index.php
โ โโโ config/ # Configuration files
โ โโโ auth.php # Auth & Database classes
โ โโโ database.php
โโโ assets/ # Frontend assets
โ โโโ css/
โ โ โโโ style.css # Main stylesheet with custom theme
โ โโโ js/
โ โโโ app.js # React application
โโโ database/ # Database files
โ โโโ web_planner.sql # Database schema
โโโ index.html # Entry point
โโโ README.md # This file
Username: demo
Password: demo123
- Click "Need an account? Sign up"
- Enter username and password
- Email is optional
- Click "Create Account"
- Navigate to Tasks from the sidebar
- Click Add Task button
- Fill in task details:
- Title (required)
- Description (optional)
- Due date (required)
- Due time (optional)
- Priority (Low/Medium/High)
- Category (Work/Personal/Shopping/Health/Other)
- Click Create Task
- Navigate to Calendar from the sidebar
- Click Add Event button or click on a date
- Fill in event details:
- Title (required)
- Description (optional)
- Date (required)
- Time (optional)
- Event type (Meeting/Deadline/Reminder/Appointment/Personal)
- Location (optional)
- Click Create Event
- View statistics at a glance
- See today's tasks
- Check recent events
- Monitor completed vs pending tasks
Edit CSS variables in assets/css/style.css:
:root {
--bg: #0a0f1c;
--accent: #34d399;
--primary: #6366f1;
/* ... more variables */
}All API endpoints are in the api/ directory:
api/auth/- Authenticationapi/tasks/- Task operationsapi/events/- Event operations
- Password Hashing - BCrypt password hashing
- SQL Injection Protection - Prepared statements with PDO
- XSS Protection - Input sanitization
- CSRF Protection - Session-based authentication
- Session Management - Secure session handling with expiration
If modals don't appear when clicking "Add Task" or "Add Event":
- Check browser console for JavaScript errors
- Ensure all scripts are loaded (React, ReactDOM, Babel)
- Clear browser cache and refresh
Error: Database connection failed
Solution:
- Verify MySQL is running in Laragon
- Check database credentials in
api/config/auth.php - Ensure
web_plannerdatabase exists
Tasks API returned non-JSON response
Solution:
- Check PHP error logs in
C:\laragon\www\logs\ - Verify database tables exist
- Ensure user is logged in
Authentication required
Solution:
- Clear browser cookies
- Log out and log back in
- Check session table in database
POST /api/auth/?action=login - User login
POST /api/auth/?action=register - User registration
POST /api/auth/?action=logout - User logout
GET /api/auth/?action=check - Check authentication status
GET /api/tasks/ - Get all user tasks
GET /api/tasks/?id={id} - Get specific task
POST /api/tasks/ - Create new task
PUT /api/tasks/ - Update task
DELETE /api/tasks/?id={id} - Delete task
GET /api/events/ - Get all user events
POST /api/events/ - Create new event
PUT /api/events/ - Update event
DELETE /api/events/?id={id} - Delete event
- โ Chrome (latest)
- โ Firefox (latest)
- โ Safari (latest)
- โ Edge (latest)
โ ๏ธ Internet Explorer (not supported)
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Your Name
- GitHub: @yourusername
- Email: your.email@example.com
- React - UI framework
- Bootstrap - CSS framework
- Bootstrap Icons - Icon library
- Laragon - Development environment
- Email notifications for reminders
- Task recurring options
- Calendar week/day views
- Task/event sharing between users
- Mobile app (React Native)
- Dark/Light theme toggle
- Export tasks/events to CSV
- Task attachments
- Comments on tasks
- Team collaboration features
If you have any questions or need help, please:
- Check the Issues page
- Create a new issue if your problem isn't already listed
- Contact me via email
โญ If you find this project helpful, please give it a star!
Made with โค๏ธ and โ