Skip to content

This application has been developed with Laravel, it offers CRUD operations and a basic authentication and registration system.

Notifications You must be signed in to change notification settings

nuriadevs/Basic-App-Laravel-11-Sanctum-Backend

Repository files navigation

Basic App Laravel 11 Sanctum (Backend)

This application has been developed with Laravel, it offers CRUD operations and a basic authentication and registration system.

Environment 🛠️

Installation ⚙️

  1. Clone this repository to your local machine using git clone <repository URL>.

  2. Install PHP dependencies using Composer with composer install.

  3. Copy the .env.example configuration file and set it up with your environment and .env file.

  4. Generate an application key with php artisan key:generate.

  5. Configure your database in the .env file.

  6. Run migrations with php artisan migrate.

  7. Run seeds for data with php artisan db:seed.

  8. Start the development server with php artisan serve.

  9. Access the application in your web browser at http://localhost:8000.

  10. 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}

Postman Testing Documentation 👨‍🚀

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.

Thanks 🍀

Thank you very much for reading this project.

About

This application has been developed with Laravel, it offers CRUD operations and a basic authentication and registration system.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published