Test Backend Inosoft API is a Laravel-based application that provides Rest API for vehicle sales.
Before installing this project, make sure you have the following prerequisites:
- PHP 8.0
- Laravel 8
- MongoDB 4.2
Follow these steps to install and set up Project Name:
-
Clone the repository:
git clone https://github.com/sakukode/test-inosoft-api.git
-
Install the dependencies using Composer:
composer install
-
If you prefer to use Laravel Sail for local development, build the Docker images:
./vendor/bin/sail build --no-cache
-
Start the application on your local machine:
./vendor/bin/sail up -d
-
Copy the
.env
file:cp .env.example .env
-
Generate an application key:
php artisan key:generate
-
Generate jwt secret using the Artisan command:
php artisan jwt:secret
-
Run the database migrations and seed the database:
php artisan migrate --seed
To run the tests for this project, follow these steps:
-
Create a copy of the
.env.example
file and name it.env.testing
. Update the configuration accordingly. -
Generate jwt secret using the Artisan command:
php artisan jwt:secret --env=testing
-
Run the tests using the Artisan command:
php artisan test
Test Backend Inosoft API is open-source software licensed under the MIT License.