This project aims to create a scalable e-commerce platform using various microservices. The platform includes core components such as user management, product catalog, cart management, order management, and payment processing.
Ensure the following tools are installed on your system:
- Node.js:
v22.11
or higher To check:NPM: v10.9 or highernode -v
Docker Compose: v2.23 or highernpm -v
docker-compose --version
- Clone the repository and navigate to the project directory:
git clone https://github.com/username/e-commerce-microservices.git
cd e-commerce-microservices
- Install the required dependencies:
npm install
- Configure environment variables (.env): A sample .env file is included in the project directory. By default, all services use local addresses. You can modify the file as needed.
- Build and run the microservices using Docker:
docker-compose build
docker-compose up
The services will now run inside Docker containers. This may take a while.
The project includes the following microservices:
Each service provides its own API documentation. Refer to the relevant files in the project directory for more details.
- Navigate to the test collections directory:
cd testCollections
2.Install the test runner (Newman):
npm install -g newman
Run the tests:
newman run './senario tests.postman_collection.json'
Contribution If you want to contribute, please submit a pull request or open an issue. Your contributions are valuable!
License This project is licensed under the MIT License. For more information, see the LICENSE file.