Coder Social home page Coder Social logo

omarhenidi / semangqa-backend Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 109 KB

SemangQa: A Laravel API for React-based task management, with user authentication, task CRUD operations (add, delete, update, retrieve), and frontend integration.

PHP 76.67% JavaScript 0.23% Blade 23.10%
laravel passport

semangqa-backend's Introduction

SemangQa - Laravel API for React Task Management

SemangQa is a project that provides a Laravel API backend for building a task management application using React on the frontend. The API includes authentication (login and registration) functionality and allows users to manage tasks by adding, deleting, updating, and retrieving specific tasks or all tasks.

Table of Contents

Introduction

SemangQa aims to provide a solid foundation for developing a task management application using the Laravel PHP framework for the backend and React for the frontend. This project focuses on implementing authentication and CRUD operations for tasks.

Features

  • User authentication (login , registration, Get User Data )
  • Add, delete, update, and retrieve specific tasks.
  • Get a list of all tasks.
  • Secure API endpoints.

Prerequisites

Before you begin, ensure you have the following installed:

  • PHP >= 8.1
  • Composer
  • Laravel
  • MySQL or another compatible database system

Installation

  1. Clone the repository:

    git clone https://github.com/omarhenidi/SemangQa-Backend.git
    
  2. Clone the repository:

    cd SemangQa-Backend
    
  3. Install the dependencies:

    composer install

Configuration

  1. Create a copy of the .env.example file and name it .env.

  2. Configure your database settings in the .env file:

    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=your_database_name
    DB_USERNAME=your_database_username
    DB_PASSWORD=your_database_password
    
    
  3. Generate the application key:

    php artisan key:generate
    
  4. Run database migrations:

    php artisan migrate
    
    

Usage

  1. Start the Laravel development server:

    php artisan serve
    

Endpoints

  • POST /api/register: Register a new user.
  • POST /api/login: User login.
  • GET /api/tasks: Get a list of all tasks.
  • GET /api/tasks/{id}: Get a specific task.
  • POST /api/tasks: Add a new task.
  • PUT /api/tasks/{id}: Update a task.
  • DELETE /api/tasks/{id}: Delete a task.

Contributing

Contributions are welcome! To contribute to SemangQa, follow these steps:

  1. Fork the repository.

  2. Create a new branch for your feature or bug fix:

    git commit -m "Add your commit message here"
    
  3. Make your changes and commit them:

    git commit -m "Add your commit message here"
    
  4. Push your changes to your forked repository:

    git push origin feature/your-feature-name
    
  5. Create a pull request on the main repository.

Please follow our Code of Conduct when contributing.

semangqa-backend's People

Contributors

omarhenidi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.