This is the microservices-based e-commerce solution that customers can register to the system and he or she can buy retails product from the store. the Store admin can manage the products, orders, and the customer.
This e-commerce system consist of the three main microservices.
- Customer Service
- Product Service
- Order Service
-
Clone the repository
https://github.com/Dilshan97/Retail-e-commerce-Backend
-
Change the project directory.
cd Retail-e-commerce-Backend
-
Install dependencies for each Micro Services using the following command.
composer install
-
Create env file using the following command.
copy .env.example .env
-
Generate App Key using the following command.
php artisan key:generate
-
Create a three database for each of the microservice.
-
Fill in all the required credentials env and setup the database.
-
Link the storage using the following command.
php artisan storage:link
-
Create database tables and add dummy data using the following command.
php artisan migrate --seed
You can run these three microservices using two ways.
-
Using artisan serve
php artisan serve
hint: if you want to the artisan serve with different port, you can usephp artisan serve --port=8001
command -
Virtual host this article may be helpfull for create virtual-host
Retail E-commerce Documentation
Stay Home | Stay Safe | Happy Coding! ❤️💻👨🎓😷