Skip to content

RESTful API backend for a task management app built with Laravel, featuring CRUD operations and JWT authentication.

Notifications You must be signed in to change notification settings

younesghu/Tasks-Laravel-Backend

Repository files navigation

Tasks Laravel Backend


About

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

Installation & Setup

To get the project up and running, follow these steps:

  • Clone the repository:
  • 
    git clone https://github.com/younesghu/Tasks-Laravel-Backend.git
    cd Tasks-Laravel-Backend
      
  • Install dependencies:
  • 
    composer install
      
  • Create a .env file:
  • 
    cp .env.example .env
      

    Set up your environment variables in .env (e.g., database credentials, JWT secret).

  • Generate an application key:
  • 
    php artisan key:generate
      
  • Generate JWT secret:
  • 
    php artisan jwt:secret
      
  • Run the database migrations:
  • 
    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:

    • Name: Test User
    • Email: test@example.com
    • Password: password
  • Start the development server:
  • 
    php artisan serve
      

Use Case Diagram

Task App Use Case

Use Class Diagram

Task App Use Class Diagram

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

RESTful API backend for a task management app built with Laravel, featuring CRUD operations and JWT authentication.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published