This is a multi-vendor e-commerce backend built using Golang (Gin + GORM) with PostgreSQL as the database.
It supports role-based access with SuperAdmin, Admin, Vendor, and User roles, product management, vendor approval workflows, and more.
- Authentication & Role-based Authorization
- Vendor Approval Flow (Pending → Approved/Rejected/Suspended)
- Product Management with Status (
draft,archive,private,published) - Product Filtering based on Role:
- Public users → only see
published - Vendors → manage their own products
- Admin/SuperAdmin → manage all products
- Category Management
- Audit Logs for important actions
- Backend: Go (Gin, GORM)
- Database: PostgreSQL
- Frontend (planned): React + TypeScript
- Deployment (planned): Docker, Netlify (for frontend)
- Clone the repository:
git clone https://github.com/abdullahalsazib/e-com-backend.git
- Navigate to the project folder:
cd e-com-backend - Set up your .env file with database and JWT configuration.
- Run the server:
go run main.go