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.
- 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
- PHP 8.1
- Laravel 10
- MySQL
- JWT Auth and Laravel Sanctum
- Laravel Cashier / Stripe
- Laravel Telescope
- PHPUnit
git clone https://github.com/fatemaasem/Ecommerce.git
cd Ecommerce
composer install
cp .env.example .env
php artisan key:generateConfigure your database, JWT, and Stripe values in .env, then run:
php artisan jwt:secret
php artisan migrate
php artisan serveThe API is available under /api. Route groups are organized in routes/api/.
- Authentication
- Products and product images
- Categories
- Offers
- Cart and wishlist
- Orders and payments
php artisan testBuilt by Fatema Assem.