This is a backend API for a Task Management Application built with Laravel. It follows RESTful principles and includes JWT-based authentication to secure user sessions. This API allows users to create, update, delete, and retrieve tasks while ensuring security and efficiency.
Features:
- CRUD operations for tasks (Create, Read, Update, Delete).
- JWT Authentication for secure user sessions.
- Task prioritization and status tracking.
- Error handling for smoother user experience.
- Modular design for easy scalability.
Technologies Used:
- PHP (8.x)
- Laravel (11.x)
- JWT Authentification
- MySQL database
- RESTful API
To get the project up and running, follow these steps:
- Clone the repository:
- Install dependencies:
- Create a
.env
file: - Generate an application key:
- Generate JWT secret:
- Run the database migrations:
- Name: Test User
- Email: test@example.com
- Password: password
- Start the development server:
git clone https://github.com/younesghu/Tasks-Laravel-Backend.git
cd Tasks-Laravel-Backend
composer install
cp .env.example .env
Set up your environment variables in .env
(e.g., database credentials, JWT secret).
php artisan key:generate
php artisan jwt:secret
php artisan migrate
or
php artisan migrate:fresh --seed
Optionally, you can use the migrate:fresh --seed
command to reset your database and seed it with sample data. This will include a user with the following details:
php artisan serve
The Laravel framework is open-sourced software licensed under the MIT license.