This repository contains a solution to the assigned task. Follow the instructions below to set up and run the project successfully.
- PHP >= 7.x (check
composer.json
for compatibility) - Composer
- MySQL (or the database specified in the
.env
file) - Ensure all other dependencies in
composer.json
are installed
- Clone the Repository
- Clone the repository using the following git command: git clone https://github.com/gsuzair/Ticket-Go-Task
- Install Dependencies
- Run the following command to install the necessary packages: composer install
- Set Up Environment Variables
- Create a .env file by copying the .env.example: cp .env.example .env
- Update the .env file with database credentials and other settings as needed.
- Also run this command after updating the .env file: php artisan config:cache
- Run Migrations
- Set up the database schema: php artisan migrate
- Seed the Database
- Populate the database with sample data: php artisan db:seed
- Generate Swagger Documentation
- Generate API documentation using Swagger: php artisan l5-swagger:generate
- Run the Project
- Start the local development server: php artisan serve
- Or clone this in the laragon www folder and try the base URL of this application, it will take you to the API documentation.
- Run Tests
- To execute the test cases, run: php artisan test