Laravel Application

This is a Laravel api built with graphql for a task management service.

Getting Started

These instructions will guide you through setting up and running the Laravel application on your local machine.

Prerequisites

Before you begin, ensure you have the following software installed:

Installation

  1. Clone the repository:

    git clone https://github.com/Keania-Eric/laravel-graphql-task-api.git
  2. Install PHP dependencies:

    composer install
  3. Create a copy of the .env.example file and name it .env:

    cp .env.example .env
  4. Generate an application key:

    php artisan key:generate
  5. Set up your database configuration in the .env file. For example, using Mysql:

    DB_CONNECTION=mysql
    DB_DATABASE=aptiw-api
    DB_USERNAME=root
    DB_PASSWORD=
  6. Run database migrations :

    php artisan migrate

Running the Application

Start the Laravel development server:

php artisan serve

Your application should now be accessible at http://localhost:8000.