Welcome to Simple TO-DO, a lightweight task management application built with Laravel(backend) and React( frontend). This project demonstrates how to combine a Laravel API with a React UI for creating, reading, updating, and deleting tasks in a simple and clean way.
β
React
β
Vite
β
Typescript
β
Tailwind CSS
β
Laravel
β
PHPUnit
β
MySQL
β
Add new tasks
β
View all tasks
β
Mark tasks as completed
β
Persistent storage with MySQL
β
Clean and modern UI with Tailwind
- Clone the repository:
git clone https://github.com/Kavithma-Thushal/simple-to-do-coveragex.git
- Install dependencies:
- Frontend
cd frontend npm install - Backend
cd backend composer install
-
Open
Docker DesktopSoftware on your machine. -
Open a terminal in the
Project Rootdirectory. -
Build and start the containers:
docker-compose up --build
-
Open your browser and access:
http://localhost:5173
-
β Youβre all set! Add, view, and manage your tasks easily!
-
Open a terminal in the
Project Rootdirectory. -
Run this command to enter the MySQL container:
docker exec -it db mysql -u root -p -
Enter the password:
1234
-
Select the database:
USE to-do; -
View tasks table:
SELECT * FROM tasks;
- Frontend
cd frontend npx vitest run - Backend
cd backend php artisan test
β
POST /api/task/add
β
GET /api/task/getAll
β
PATCH /api/task/complete
Got any bugs, issues, or need help understanding the code? Feel free to reach out!
π§ kavithmathushal9007@gmail.com