Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/basemax/laraveltaskddd
This is a PHP & Laravel-based RESTful API that manages tasks using Domain Driven Design (DDD) architecture. The API allows users to create, read, update, and delete tasks.
https://github.com/basemax/laraveltaskddd
api api-ddd ddd ddd-api ddd-php laravel laravel-10 laravel-php laravel10 php php-api php-ddd php-laravel php-task php8
Last synced: 16 days ago
JSON representation
This is a PHP & Laravel-based RESTful API that manages tasks using Domain Driven Design (DDD) architecture. The API allows users to create, read, update, and delete tasks.
- Host: GitHub
- URL: https://github.com/basemax/laraveltaskddd
- Owner: BaseMax
- Created: 2023-03-15T21:44:51.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-10T01:27:51.000Z (24 days ago)
- Last Synced: 2024-12-14T00:12:55.724Z (20 days ago)
- Topics: api, api-ddd, ddd, ddd-api, ddd-php, laravel, laravel-10, laravel-php, laravel10, php, php-api, php-ddd, php-laravel, php-task, php8
- Language: PHP
- Homepage:
- Size: 301 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Task API DDD
This is a PHP & Laravel-based RESTful API that manages tasks using Domain Driven Design (DDD) architecture. The API allows users to create, read, update, and delete tasks.
## Table of Contents
- Installation
- Usage
- Endpoints
- Contributing
- License## Installation
Clone the repository:
```bash
git clone https://github.com/BaseMax/LaravelTaskDDD.git
```Install dependencies using Composer:
```bash
cd LaravelTaskDDD
composer install
```Create .env file:
```bash
cp .env.example .env
```Configure the database connection in .env file.
Run the database migration:
```bash
php artisan migrate
```## Usage
Start the artisan(a command-line tool) server:
```bash
php artisan serve
```Use your preferred HTTP client to make requests to the API endpoints.
## Endpoints
The API has the following endpoints:
- `GET /tasks`
Returns a list of all tasks.- `GET /tasks/{id}`
Returns a single task by ID.- `POST /tasks`
Creates a new task.- `PUT /tasks/{id}`
Updates an existing task by ID.- `DELETE /tasks/{id}`
Deletes a task by ID.## Contributing
Contributions are welcome! To contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature.
- Make your changes and commit them with clear commit messages.
- Push your branch to your fork of the repository.
- Create a pull request to the main repository.## License
This project is licensed under the GPL-3.0 license.