Coder Social home page Coder Social logo

andynur / rapid-task Goto Github PK

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

This is a simple Task API project built with Laravel 10, MySQL, Pest, and utilizing the Service Repository Pattern. This project provides a RESTful API for managing tasks.

PHP 76.74% JavaScript 0.23% Blade 23.03%
laravel mysql pest service-repository-pattern

rapid-task's Introduction

Rapid Task

This is a simple Task API project built with Laravel 10, MySQL, Pest, and utilizing the Service Repository Pattern. This project provides a RESTful API for managing tasks.

Requirements

  • PHP 8.1 or higher
  • Composer
  • MySQL
  • Node.js (for Laravel Mix)

Installation

  1. Clone the repository:

    git clone https://github.com/andynur/rapid-task.git
    cd rapid-task
  2. Install the dependencies:

    composer install
    npm install
  3. Copy the .env.example file to .env and configure the database connection:

    cp .env.example .env

    Update the database credentials in the .env file:

    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=your_database
    DB_USERNAME=your_username
    DB_PASSWORD=your_password
  4. Generate the application key:

    php artisan key:generate
  5. Run the database migrations:

    php artisan migrate
  6. (Optional) Seed the database:

    php artisan db:seed
  7. Serve the application:

    php artisan serve

    The application will be accessible at http://localhost:8000.

Running Tests

This project uses Pest for testing. To run the tests, use the following command:

./vendor/bin/pest

Project Structure

The project follows the Service Repository Pattern. Here's a brief overview of the structure:

  • app/Http/Controllers: Contains the controllers for handling HTTP requests.
  • app/Models: Contains the Eloquent models.
  • app/Repositories: Contains the repository classes.
  • app/Services: Contains the service classes.
  • database/migrations: Contains the database migration files.
  • tests: Contains the test cases.

API Endpoints

Here are some of the main API endpoints:

  • GET /api/tasks: Retrieve a list of tasks.
  • GET /api/tasks/{id}: Retrieve a specific task.
  • POST /api/tasks: Create a new task.
  • PUT /api/tasks/{id}: Update an existing task.
  • DELETE /api/tasks/{id}: Delete a task.

Contributing

Contributions are welcome! Please submit a pull request or open an issue to discuss any changes.

License

This project is open-source and licensed under the MIT License.

rapid-task's People

Contributors

andynur 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.