A sleek, productivity-boosting todo application with task management, deadlines, and collaboration features.
βοΈ Create/Update/Delete Tasks
βοΈ Mark Tasks as Complete
βοΈ Secure Validation
βοΈ Clear Completed Tasks by One Click
βοΈ Filter Tasks Status
βοΈ Sunctum Authentication (Login/Register/Logout)
βοΈ Automated Tests (12 Tests Passed)
//Base Api URL
http://127.0.0.1:8000/api;
or
http://localhost:8000/api;
POST
/auth/register
create an user
name type data type description name required string N/A required string unique string password integer string N/A password_confirmation required string N/A
http code content-type response 201
json
[]
{
"status": true,
"message": "User registered successfully.",
"token": "1|NZo9LHRD8LD36eBwzP8ZS9KQfXwPpK8tSaaCTqhq8f93781d"
}
POST
/auth/login
user login
name type data type description required string unique string password integer string N/A
http code content-type response 200
json
[]
{
"status": true,
"message": "User logged in successfully",
"token": "2|C7rSL7rPMadM4xgj6RPQGbvJiaUdqrHLCIV3r6Ol03696b94",
"isVerified": false
}
GET
/tasks
get all the tasks list through this api
Need authorize Bearer Token
http code content-type response 200
json
[]
[
{
"id": 4,
"name": "Onboarding preparation",
"description": "<p>Set up equipment for new hires starting Monday</p>",
"status": 0,
"status_name": "Pending"
},
{
"id": 3,
"name": "Nutrition consultation",
"description": "<p>Review meal plans with weight loss clients</p>",
"status": 2,
"status_name": "Completed"
},
{
"id": 2,
"name": "Code review: payment module",
"description": "<p>Review PR #142 for security vulnerabilities</p>",
"status": 0,
"status_name": "Pending"
},
{
"id": 1,
"name": "Team practice: 5pm",
"description": "<p>Focus on defensive formations and set pieces</p>",
"status": 0,
"status_name": "Pending"
}
]
POST
/tasks
to create new task
name type data type description name required string N/A description required string N/A
http code content-type response 200
json
[]
{
"success": true,
"message": "Task created successfully."
}
PUT
/tasks/11
to update a task
name type data type description name required string N/A description required string N/A
http code content-type response 200
json
[]
{
"success": true,
"message": "Task updated successfully.",
"data": {
"id": 11,
"name": "Reach at ar-techpro.com",
"description": "<p>To conduct and experience with future technology....<\/p>",
"status": 0,
"status_name": "Pending"
}
}
GET
/tasks/12
get individual task
http code content-type response 200
json
[]
{
"data": {
"id": 12,
"name": "Do the great job",
"description": "<p>To conduct and experience with ar-techpro.com</p>",
"status": 0,
"status_name": "Pending"
}
}
DELETE
/tasks/12
delete individual task
http code content-type response 200
json
[]
{
"success": true,
"message": "Task deleted successfully."
}
PUT
/tasks/11/status
to change status that task would get complete or pending
name type data type description status required string enum value
http code content-type response 200
json
[]
{
"success": true,
"message": "Task status updated successfully."
}
- PHP 8.2+
- Composer
- MySQL
# Clone & Setup
git clone https://github.com/mar-babu/laravel_todo_backend.git
cd laravel_todo_backend
composer install
cp .env.example .env
php artisan key:generate
# Configure Database (edit .env)
DB_CONNECTION=mysql
DB_DATABASE=todomaster
DB_USERNAME=root
DB_PASSWORD=
# Run Migrations
php artisan migrate --seed
# Start Server
php artisan serve
# Automated Tests
php artisan test
The Laravel framework is open-sourced software licensed under the MIT license.