Store with Laravel API is an open source Store RESt API. that includes list of the products, filtering, search for products brand or category, pagination and ...
Store with Laravel API is an open source Store RESt API that includes list of the products, filtering, search for products brand or category and pagination ... also includes comments for product, payment management, user profile and orders management.
- PHP 8.1
- Laravel 10.0
- Livewire 2.12
- l5-swagger 8.5
- log-viewer 10.0
- Admin panel
- Users can signup and login to their accounts.
- Filter most_sold_products, most_visited_products, cheapest_products, most_expensive_products.
- Search products By Category and By Brand.
- Payment management.
- Received_orders management.
- Manage Brand, Color and Property of products.
- Save products comment.
- User profile management.
- Users who have the role of
Super Admin
can access all Products as well as create a new product, edit and also delete what they've created.
git clone https://github.com/MobinaJafarian/A-Store-with-Laravel-API.git
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate
Then
php artisan serve
npm install
npm run dev
Admin login details:
- Email = admin@admin.com
- Password = password
Connect to the API (using Postman) on port [127.0.0.1:8000]
HTTP Verbs | Endpoints | Action |
---|---|---|
GET | /api/v1/home | home page |
POST | /api/v1/register | To create a new user account |
POST | /api/v1/profile | To display user orders |
POST | /api/v1/search_product | To search products |
GET | /api/v1/product_detail/{id} | To dispaly product detail |
GET | /api/v1/most_sold_products | To filter most_sold_products |
POST | /api/v1/payment | To display payment |
POST | /api/v1/received_orders | To display received_orders |
... | ... | ... |
Created by @MobinaJafarian - feel free to contact me!