A full-stack e-commerce marketplace application built for both buyers and sellers.
AlgShop is a modern marketplace platform that provides a complete shopping experience for buyers while giving sellers their own tools to manage products, inventory, orders, and their shop.
The application is built with React + Vite on the frontend and Laravel 12 on the backend.
Frontend:
https://algshop.vercel.app
The current demo uses simulated payment processing for development and demonstration purposes.
- Browse public product catalog
- Product detail pages
- Shop information
- Product images
- Product stock visibility
- Product discounts
- Final price calculation
- Add products to cart
- View cart
- Update cart before checkout
- User-specific shopping cart
- Prevent users from purchasing products from their own shop
- Checkout cart
- Select shipping address
- Group orders by seller/shop
- Automatic invoice number generation
- Automatic stock deduction after checkout
- Order details and items
- Buyer order history
- Seller incoming orders
- Seller order status management
- Dedicated payment page
- Invoice-based payment flow
- Simulated payment endpoint
- Payment status handling
Note: The current implementation uses a simulated payment endpoint. It is not a live payment gateway integration.
- Add shipping addresses
- Edit addresses
- Delete addresses
- Set default address
- Automatic default address handling
- Create a shop
- Seller dashboard
- Manage seller products
- Add products
- Edit products
- Delete products
- Set product price
- Set discounts
- Manage stock
- Upload multiple product images
- Product management statistics
- Low-stock indication
- Review purchased products
- 1β5 star ratings
- Review comments
- Only verified purchases can be reviewed
- Prevent duplicate reviews from the same user
- User registration
- Login
- Laravel Sanctum authentication
- Protected buyer and seller features
- User profile endpoint
ALGSHOP
ββββββββββββββββββββββββββββββββββββ
β React + Vite β
β Tailwind CSS β
β β
β Catalog β’ Cart β’ Checkout β
β Orders β’ Seller Dashboard β
βββββββββββββββββ¬βββββββββββββββββββ
β
β HTTP / REST API
βΌ
ββββββββββββββββββββββββββββββββββββ
β Laravel 12 β
β β
β Sanctum Authentication β
β Product API β
β Cart API β
β Order API β
β Address API β
β Review API β
β Seller API β
βββββββββββββββββ¬βββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββ
β MySQL-compatible DB β
β β
β Users β’ Shops β’ Products β
β Orders β’ Cart β’ Reviews β
ββββββββββββββββββββββββββββββββββββ
The frontend uses Vercel rewrite rules to proxy API and storage requests to the backend server.
- React
- Vite
- Tailwind CSS
- React Router
- Axios
- PHP 8.2+
- Laravel 12
- Laravel Sanctum
- Laravel Breeze
- Eloquent ORM
- MySQL / MariaDB-compatible database
- Vercel
- VPS backend deployment
ALGSHOP
β
βββ src/
β βββ pages/
β β βββ Catalog.jsx
β β βββ ProductDetail.jsx
β β βββ Cart.jsx
β β βββ ConfirmOrder.jsx
β β βββ Payment.jsx
β β βββ OrderHistory.jsx
β β βββ SellerDashboard.jsx
β β βββ MyProducts.jsx
β β βββ CreateShop.jsx
β β βββ Login.jsx
β β βββ Register.jsx
β β
β βββ utils/
β
βββ public/
βββ vercel.json
βββ package.json
βββ README.md
GET /api/katalog
GET /api/produk/{id}
POST /api/login
POST /api/register
GET /api/keranjang
POST /api/keranjang/{product_id}
POST /api/checkout-keranjang
GET /api/alamat
POST /api/alamat
PUT /api/alamat/{id}
DELETE /api/alamat/{id}
PUT /api/alamat/{id}/default
POST /api/bayar-simulasi
GET /api/riwayat-belanja
POST /api/produk/{id}/ulasan
POST /api/buka-toko
GET /api/toko-saya/produk
POST /api/toko-saya/produk
POST /api/toko-saya/produk/{id}
DELETE /api/toko-saya/produk/{id}
GET /api/pesanan-masuk
PUT /api/pesanan/{id}/status
git clone https://github.com/amarmaruf6800-collab/algshop-frontend.git
cd algshop-frontendnpm installSet the backend API URL according to your local or deployed backend environment.
npm run devalgshop-backend
The backend contains the Laravel API, authentication, product management, shopping cart, checkout, orders, reviews, and seller functionality.
Do not commit production credentials or secrets to GitHub.
Example:
VITE_API_URL=http://localhost:8000Use environment variables for environment-specific configuration.
AlgShop demonstrates practical full-stack application development through:
- E-commerce marketplace architecture
- Buyer and seller workflows
- Authentication and authorization
- Product CRUD
- Multi-image product management
- Shopping cart
- Checkout workflow
- Stock deduction
- Shipping address management
- Order management
- Seller dashboard
- Product reviews
- REST API integration
- React + Laravel development
This project focuses on implementing a marketplace workflow rather than only creating a product catalog.
The application connects multiple parts of an e-commerce system:
User
β
Browse Products
β
Product Detail
β
Shopping Cart
β
Checkout
β
Payment Simulation
β
Order
β
Stock Deduction
β
Seller Order Management
Amar
Junior Web Developer | Full-Stack Enthusiast
Information Technology / Web Development
