Skip to content

Repository files navigation

E-Commerce REST API

A Laravel 10 REST API for an e-commerce platform. The project provides JWT-based authentication and endpoints for products, categories, images, offers, carts, wishlists, orders, and Stripe-backed payments.

Features

  • JWT authentication and protected API routes
  • Product and category management
  • Multiple images per product
  • Offers and product discounts
  • Shopping cart and wishlist flows
  • Order and order-item management
  • Stripe integration through Laravel Cashier
  • API debugging with Laravel Telescope
  • Database migrations for the complete commerce domain

Tech Stack

  • PHP 8.1
  • Laravel 10
  • MySQL
  • JWT Auth and Laravel Sanctum
  • Laravel Cashier / Stripe
  • Laravel Telescope
  • PHPUnit

Getting Started

git clone https://github.com/fatemaasem/Ecommerce.git
cd Ecommerce
composer install
cp .env.example .env
php artisan key:generate

Configure your database, JWT, and Stripe values in .env, then run:

php artisan jwt:secret
php artisan migrate
php artisan serve

The API is available under /api. Route groups are organized in routes/api/.

Main API Areas

  • Authentication
  • Products and product images
  • Categories
  • Offers
  • Cart and wishlist
  • Orders and payments

Testing

php artisan test

Author

Built by Fatema Assem.

About

E-Commerce Web Application

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages