A simple task management API built with Lumen.
- Clone the repository:
git clone https://github.com/yourusername/task-manager.git
cd task-manager- Install Dependencies:
composer install- Create a .env:
cp .env.example .env-
Update your database credentials in .env.
-
Run migrations
php artisan migrate- Start Server
php -S localhost:8000 -t publicUse Postman or similar tools to test the API. Make sure to set the Content-Type to application/json when sending requests.
To create a task:
{
"title": "Work Out",
"description": "50 Pushups",
"due_date": "2024-11-01"
}