This is a Laravel api built with graphql for a task management service.
These instructions will guide you through setting up and running the Laravel application on your local machine.
Before you begin, ensure you have the following software installed:
-
Clone the repository:
git clone https://github.com/Keania-Eric/laravel-graphql-task-api.git
-
Install PHP dependencies:
composer install
-
Create a copy of the
.env.example
file and name it.env
:cp .env.example .env
-
Generate an application key:
php artisan key:generate
-
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=
-
Run database migrations :
php artisan migrate
Start the Laravel development server:
php artisan serve
Your application should now be accessible at http://localhost:8000
.