https://github.com/kevinamayi/task-manager
Lumen
https://github.com/kevinamayi/task-manager
laravel-framework lumen-framework
Last synced: about 2 months ago
JSON representation
Lumen
- Host: GitHub
- URL: https://github.com/kevinamayi/task-manager
- Owner: KEVINAMAYI
- Created: 2024-10-28T14:43:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-28T15:21:27.000Z (over 1 year ago)
- Last Synced: 2025-07-25T08:12:59.027Z (10 months ago)
- Topics: laravel-framework, lumen-framework
- Language: PHP
- Homepage: https://lumen.laravel.com/docs/11.x
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Task Manager API
A simple task management API built with Lumen.
## Table of Contents
- [Installation](#installation)
- [API Endpoints](#api-endpoints)
- [Usage](#usage)
## Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/task-manager.git
cd task-manager
```
2. Install Dependencies:
```bash
composer install
```
3. Create a .env:
```bash
cp .env.example .env
```
4. Update your database credentials in .env.
5. Run migrations
```bash
php artisan migrate
```
5. Start Server
```bash
php -S localhost:8000 -t public
```
## API Endpoints
#### 1. POST /api/tasks - Create a new task
#### 2. GET /api/tasks - Get a list of tasks/Filter for specific tasks
#### 3. GET /api/tasks/{id} - Get a specific task
#### 4. PUT /api/tasks/{id} - Update a specific task
#### 5. DELETE /api/tasks/{id} - Delete a specific task
#### 6. GET /api/search - Search for tasks by title
## Usage
#### Use Postman or similar tools to test the API. Make sure to set the Content-Type to application/json when sending requests.
### Example Request
To create a task:
```json
{
"title": "Work Out",
"description": "50 Pushups",
"due_date": "2024-11-01"
}
```