Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omar7tech/ecommerce-laravel-restful-api
Ecommerce Laravel API is a backend solution tailored for ecommerce applications, providing essential functionalities for managing products, categories, orders, and user locations. Its standout feature is a robust JWT authentication system, ensuring secure user access and authorization, thereby enhancing the overall security of the platform.
https://github.com/omar7tech/ecommerce-laravel-restful-api
api authentication authorization backend e-commerce functionality jwt laravel management scalability security
Last synced: 3 days ago
JSON representation
Ecommerce Laravel API is a backend solution tailored for ecommerce applications, providing essential functionalities for managing products, categories, orders, and user locations. Its standout feature is a robust JWT authentication system, ensuring secure user access and authorization, thereby enhancing the overall security of the platform.
- Host: GitHub
- URL: https://github.com/omar7tech/ecommerce-laravel-restful-api
- Owner: Omar7tech
- Created: 2024-06-04T17:56:26.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-04T18:08:00.000Z (8 months ago)
- Last Synced: 2024-11-15T04:36:12.548Z (2 months ago)
- Topics: api, authentication, authorization, backend, e-commerce, functionality, jwt, laravel, management, scalability, security
- Language: PHP
- Homepage:
- Size: 82 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ecommerce Laravel API
## About
Ecommerce Laravel API is a powerful backend solution for building ecommerce applications with Laravel. It provides a robust set of features to manage products, categories, orders, and user authentication.
## Features
- **Product Management**: Create, read, update, and delete products with ease.
- **Category Management**: Organize products into categories for better navigation.
- **Order Management**: Handle orders, including order creation, retrieval, and status updates.
- **Authentication**: Secure your API with JWT authentication using Laravel Sanctum.
- **Location Management**: Manage user locations for efficient order delivery.
- **Brand Management**: Keep track of brands associated with your products.## Authentication
This API uses JWT authentication provided by Laravel Sanctum. Users can register, log in, and log out to access protected routes.
## Installation
1. Clone the repository: `git clone https://github.com/Omar7tech/Ecommerce-laravel-api.git`
2. Install dependencies: `composer install`
3. Set up your environment variables: `cp .env.example .env`
4. Generate the application key: `php artisan key:generate`
5. Run migrations: `php artisan migrate`## Routes
Here are some example routes along with their expected responses:
### GET /api/products
**Description:** Retrieve a list of all products.
**Response:**
```json
{
"data": [
{
"id": 1,
"name": "Product 1",
"price": 50.00,
"category": {
"id": 1,
"name": "Category A"
},
"brand": {
"id": 1,
"name": "Brand X"
},
"created_at": "2024-06-01T12:00:00.000000Z",
"updated_at": "2024-06-01T12:00:00.000000Z"
},
{
"id": 2,
"name": "Product 2",
"price": 75.00,
"category": {
"id": 1,
"name": "Category A"
},
"brand": {
"id": 2,
"name": "Brand Y"
},
"created_at": "2024-06-02T12:00:00.000000Z",
"updated_at": "2024-06-02T12:00:00.000000Z"
}
]
}