https://github.com/vinniko/ltask-backend
:heavy_check_mark: LTask Backend (Laravel 10 PHP framework tasker api with basic auth)
https://github.com/vinniko/ltask-backend
api api-rest basic-authentication laravel mysql php8
Last synced: about 1 month ago
JSON representation
:heavy_check_mark: LTask Backend (Laravel 10 PHP framework tasker api with basic auth)
- Host: GitHub
- URL: https://github.com/vinniko/ltask-backend
- Owner: Vinniko
- Created: 2023-11-14T13:08:49.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-14T13:09:59.000Z (over 2 years ago)
- Last Synced: 2025-10-11T04:09:04.756Z (8 months ago)
- Topics: api, api-rest, basic-authentication, laravel, mysql, php8
- Language: PHP
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## LTask Backend (Laravel 10 PHP framework tasker api with basic auth)
## Installation
Copy .env from .env.example file and then write your database config. API_LOGIN and API_PASSWORD should be set to test and test respectively.
```bash
cp .env.example .env
```
Run composer install
```bash
composer install
```
Run migrations
```bash
php artisan migrate
```
Run seeders
```bash
php artisan migrate:refresh --seed
```
Generate app key:
```bash
php artisan key:generate
```
Run:
```bash
php artisan serve
```
Now you can access the api from postman, curl or from the Vue project by reference
```bash
localhost:8000
```
Examples of requests (with basic api required):
Get Tasks response:
```json
{
"data": [
{
"id": 1,
"name": "Mr.",
"description": "A dolores magnam sequi laudantium sit. Magni quos quis autem facilis dolores. Tenetur necessitatibus ut voluptate consequatur. Veniam nesciunt corporis et consequuntur.",
"author": {
"id": 1,
"name": "Icie Monahan III",
"email": "blubowitz@example.org",
"created_at": "2023-11-13T18:48:36.000000Z",
"updated_at": "2023-11-13T18:48:36.000000Z"
},
"status": "new",
"is_open": 1
}
]
}
```
Delete Task response:
```json
{
"data": {
"message": "Карточка успешно удалена"
}
}
```