This application has been developed with Laravel, it offers CRUD operations and a basic authentication and registration system.
- PHP 8.2.4
- Laravel 11
- Laravel Sanctum
- API
- CRUD
- MySQl
- Postman
- Visual Studio Code
-
Clone this repository to your local machine using
git clone <repository URL>
. -
Install PHP dependencies using Composer with
composer install
. -
Copy the
.env.example
configuration file and set it up with your environment and.env
file. -
Generate an application key with
php artisan key:generate
. -
Configure your database in the
.env
file. -
Run migrations with
php artisan migrate
. -
Run seeds for data with
php artisan db:seed
. -
Start the development server with
php artisan serve
. -
Access the application in your web browser at http://localhost:8000.
-
API endpoints
Endpoint | Methods | Routes |
---|---|---|
Auth | ||
Login | POST | api/auth/login |
Register | POST | api/auth/register |
Logout | POST | api/auth/logout |
Users | ||
Index | GET | api/users |
Show | GET | api/users/{user} |
Store | POST | api/users |
Update | PATCH | api/users/{user} |
Destroy | DELETE | api/users/{user} |
Products | ||
Index | GET | api/products |
Show | GET | api/products/{product} |
Store | POST | api/products |
Update | PATCH | api/products/{product} |
Destroy | DELETE | api/products/{product} |
Orders | ||
Index | GET | api/orders |
Show | GET | api/orders/{order} |
Store | POST | api/orders |
Update | PATCH | api/orders/{order} |
Destroy | DELETE | api/orders/{order} |
This brief documentation provides details on how to test the application's endpoints using Postman. You can find it in the documentation folder at the root of the project.
Thank you very much for reading this project.