All Projects → rakibhasansabbir → Laravel-Ecommerce-API

rakibhasansabbir / Laravel-Ecommerce-API

Licence: MIT license
Lite E-Commerce API

Programming Languages

PHP
23972 projects - #3 most used programming language
Blade
752 projects

Projects that are alternatives of or similar to Laravel-Ecommerce-API

passport-42
Passport strategy for authenticating with 42 using the OAuth 2.0 API
Stars: ✭ 26 (-18.75%)
Mutual labels:  passport
Tezos-Developer-Resources
Resources for Tezos Developers
Stars: ✭ 34 (+6.25%)
Mutual labels:  resource
kuberhaus
Kubernetes resource dashboard with node/pod layout and resource requests
Stars: ✭ 41 (+28.13%)
Mutual labels:  resource
getting-started
✨ START HERE ✨ Introduction to the club with a bunch of useful links!
Stars: ✭ 17 (-46.87%)
Mutual labels:  resource
hej
Hej! is a simple authentication boilerplate for Socialite.
Stars: ✭ 111 (+246.88%)
Mutual labels:  passport
fivem-mongodb
MongoDB wrapper for FiveM
Stars: ✭ 25 (-21.87%)
Mutual labels:  resource
SimpleObjectPool
Simple thread-safe object pool in Objective-C
Stars: ✭ 13 (-59.37%)
Mutual labels:  factory
gioc
golang ioc framework
Stars: ✭ 33 (+3.13%)
Mutual labels:  factory
AppThinning
Make app thinner. Help you find large files and compress png, gif, jpg, svg files. 应用程序瘦身工具,帮助你找到大文件,压缩png、gif、jpg、svg等文件。
Stars: ✭ 22 (-31.25%)
Mutual labels:  resource
ng-nest-cnode
Angular 10 Front-End and Nestjs 7 framework Back-End build Fullstack CNode
Stars: ✭ 17 (-46.87%)
Mutual labels:  passport
IDVerification
"Very simple but works well" Computer Vision based ID verification solution provided by LibraX.
Stars: ✭ 44 (+37.5%)
Mutual labels:  passport
dotnet-design-patterns-samples
The samples of .NET design patterns
Stars: ✭ 25 (-21.87%)
Mutual labels:  factory
ExpressJS-SocketIO-Boilerplate
📦 Simple Express.js & Socket.io Boilerplate
Stars: ✭ 31 (-3.12%)
Mutual labels:  passport
nest-auth-example
Nest.js authentication with Passport. Realworld example
Stars: ✭ 186 (+481.25%)
Mutual labels:  passport
metamorphic
A factory contract for creating metamorphic (i.e. redeployable) contracts.
Stars: ✭ 167 (+421.88%)
Mutual labels:  factory
express-4.x-twitter-example
Express 4.x app using Passport for sign in with Twitter.
Stars: ✭ 103 (+221.88%)
Mutual labels:  passport
Loadables
A Unity3D library for abstracting and simplifying loadable assets and scenes.
Stars: ✭ 23 (-28.12%)
Mutual labels:  resource
jeesuite-passport
Jeesuite-passport是面向企业级单点登录、统一认证的一站式解决方案。支持微信、企业微信、主流开放平台OAuth、Oauth2.0,JWT、SAML2.0多种认证集成模式。
Stars: ✭ 108 (+237.5%)
Mutual labels:  passport
passport-yandex
Yandex authentication strategy for Passport and Node.js.
Stars: ✭ 19 (-40.62%)
Mutual labels:  passport
react-node-twitter-login
Demo application that shows how to enable Twitter login with React on frontend and Node.js/Express on backend
Stars: ✭ 34 (+6.25%)
Mutual labels:  passport

Laravel-Ecommerce-API

Simple and robust e-commerce API to assist those who are just getting started.

Getting Started

for test These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

Laravel
PHP 8.1+
mysql

Installing

A step by step series of examples that tell you how to get a development env running

Execute one by one

-> cp .env.example .env
-> composer install
-> php artisan key:generate 

create folder under public/storage/images

-> php artisan migrate:fresh --seed
-> php artisan passport:install

-> php artisan serve

And repeat

until finished

End with an example of getting some data out of the system or using it for a little demo

Running the tests

I am using Postman u can use anyone like insomnia

create user token for create update and delete operation

-> (POST)localhost:8000/oauth/token

Headers

Accept : application/json
Content-Type : application/json

Body(put your details [Nb: password allows be 'secret' if you are using seed command] )

{
	"grant_type" : "password",
	"client_id" : "2",
	"client_secret" : "xZNRgxf0f6xFmS8CLxcxkioL7Yhgj9eKOhFxIhkj",
	"username" : "[email protected]",
	"password" : "secret"
}

Break down into end to end tests

Flow below instraction for test your API

Get all products

(GET) http://localhost:8000/api/products

Get single products

(GET) http://localhost:8000/api/products/1

Create products

(POST) http://localhost:8000/api/products

Headers
Accept : application/json
Content-Type : application/json
Authorization : "put your user secret"

Body(put your details)

{
	"name" : "Iphone X",
	"description" : "Super Retina in two sizes — including the largest display ever on an iPhone. Even faster Face ID. The smartest, most powerful chip in a smartphone. And a breakthrough dual-camera system. iPhone XS is everything you love about iPhone. Taken to the extreme.",
	"price" : 10000,
	"stock" : 10,
	"discount" : 15
}

Update product

same as create only change request post to put

Delete product

(DELETE) http://localhost:8000/api/products/2
also need some headers as like as product create 

Get all reviews in particular product

(GET) http://localhost:8000/api/products/1/reviews

Create review

(POST) http://localhost:8000/api/products/1/reviews

Body(put your details)
{
	"customer": "Rakib Hasan Sabbir",
    "review" : "Quo sapiente quos suscipit. Dolor et sit architecto deserunt sunt.",
    "star" : 5
}

Delete review

(DELETE) http://localhost:8000/api/products/1/reviews/501
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].