This project is a basic e-commerce management system built with Laravel (backend) and Vue.js (frontend admin panel). It includes user management, product management, cart & checkout, order management, and content management (CMS).
-
Clone the repository.
-
Install dependencies:
composer install
npm install-
Configure your
.envfile with database and other settings. -
Run migrations:
php artisan migrate- Serve the application:
php artisan serve- Build frontend assets:
npm run devTo run all tests (unit and feature):
php artisan testor
vendor/bin/phpunitA Postman collection is provided in the postman_collection.json file (or link to public collection).
Import it into Postman to test the API endpoints.
- User registration, login, profile management with Laravel Sanctum authentication.
- Product management (admin only) with CRUD operations.
- Cart management: add/remove products, view cart.
- Order management: place orders, view order history, admin order status updates.
- CMS management: create/edit/archive content pages with banner images and links.
- Unit tests for Eloquent models.
- Feature tests for product creation and order checkout.
- Admin authorization is simplified; consider adding roles and permissions for production.
- Frontend Vue.js admin panel to be implemented separately.