This guide outlines the steps to install and utilize the Activity API using Laravel Sail.
-
Clone the project repository:
git clone <repository_url>
-
Navigate to the project directory:
cd <project_directory>
-
Install with composer
composer install
composer run post-root-package-install
-
Start Laravel Sail:
./vendor/bin/sail up -d
-
Configure the project:
./vendor/bin/sail composer run post-create-project-cmd
-
Run the seeder
./vendor/bin/sail artisan db:seed --class=ActivitySeeder
-
Once Sail is up and running, you can access the Activity API at
http://localhost/api
.
-
To interact with the API, you can use tools like Postman or cURL.
-
The Swagger documentation for the API is available at:
http://localhost/api/documentation
-
Explore the Swagger documentation to understand the available endpoints and their usage.
-
You can make requests to the API endpoints listed in the Swagger documentation using the specified parameters.
-
Ensure Laravel Sail remains running while you interact with the API.
- Run all tests inside sail container
./vendor/bin/sail artisan test
- Result of the tests
By following these steps, you can install and utilize the Activity API with Laravel Sail. Use the Swagger documentation to understand and utilize the available endpoints effectively.