Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/truptigaonkar/ecommapi
Ecommerce Restful API using Laravel API Resource (Laravel Version 5.6, PHP version 7.2).
https://github.com/truptigaonkar/ecommapi
api api-rest laravel-api laravel-framework laravel55 postman
Last synced: about 9 hours ago
JSON representation
Ecommerce Restful API using Laravel API Resource (Laravel Version 5.6, PHP version 7.2).
- Host: GitHub
- URL: https://github.com/truptigaonkar/ecommapi
- Owner: truptigaonkar
- Created: 2018-03-17T18:31:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-08T06:11:32.000Z (almost 5 years ago)
- Last Synced: 2024-11-11T16:02:36.593Z (about 2 months ago)
- Topics: api, api-rest, laravel-api, laravel-framework, laravel55, postman
- Language: PHP
- Homepage:
- Size: 8.91 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Laravel E-Commerce Restful API
An Ecommerce Restful API using Laravel API Resource (Laravel Version 5.6, PHP version 7.2).
Features:
1. Setting up the environment.
2. Creating Model, Factory, Migtation for Products and Reviews.
3. Creating API Resource Controller for Products : List,Show,Store,Update,Delete Products
4. Creating API Resource Controller for Reviews : List,Show,Store,Update,Delete Reviews
5. Setup migration to create tables Products & Reviews.
6. Database seeding with faker library and factory for Products & Reviews.
7. Creating one-many relationship between Product and Review.
8. Transform product & Review model for your API.
9. Setup environment in Postman.
10. Implement meta links in API.
11. Configure API Authentication - Passport package to provide authentication
- Authenticated users can store/update/delete Products
- Normal users can List/Show Products and List,Show,Store,Update,Delete Reviews
12. Pagination feature is available on Products list.
13. MYSQL dump of the database named ecommapi.sql’ is provided.
### Prerequisites
• Knowledge of Laravel php framework
• XAMPP (start MySQL, Apache service)
• Phpmyadmin
• Php laravel (Laravel Framework 5.6, PHP version 7.2)
• Text editor (Visual Studio Code)
• Postman tool## Getting Started
Step 1: Download and add the folder inside ‘C:\xampp\htdocs’
Step 2: Open phpmyadmin http://localhost/phpmyadmin/index.php , create database ‘ecommapi’ and import database dump file ‘ecommapi.sql’ into it.
Step 3: Go to command prompt
c:\xampp\htdocs\ecommapi>php artisan serve
Use Postman tool for performing integration testing with your API.
Postman Output for entire Project E-Commerce API
![ecommapi](https://user-images.githubusercontent.com/14937374/37905555-88b6e1ba-30ff-11e8-9493-e1b70ffe2c9e.png)