This is an e-commerce platform built using a microservices architecture. The platform enables users to purchase wholesale products and resell them in a personalized marketplace.
- External API Integration: Fetches products from an external API.
- Spring Security and JWT: Handles user registration, authentication, and logout.
- Wholesale Products: Users can browse wholesale products at
localhost:8080/product/wholesale-products
. - Resale Capabilities: Users can resell purchased products, appearing at
localhost:8080/product/market-products
. - Automated Sale Simulation: Scheduled tasks to simulate product sales.
- Microservices Architecture: Designed with a microservices approach.
- JDK 11: The project is built using JDK 11.
- Gradle: Gradle is used for dependency management.
- Spring Boot: Used for the backend framework.
- PostgreSQL: Utilized for the database.
- Liquibase: Handles database migrations.
- Eureka Server: For service discovery.
- Application Gateway: Serves as the API gateway.
- Docker: The project includes Dockerfile and docker-compose.yml for containerization.
- JDK 11
- Gradle
- Docker
- PostgreSQL
-
Clone the Repository
git clone [https://github.com/yourusername/your-repo-name.git](https://github.com/jahangirzadanurlan/E-commerce-Platform.git)
-
Navigate to Project Directory
cd E-commerce-Platform
-
Build the Project
gradle build
-
Run Docker Compose
docker-compose up
- Register a new user at
localhost:8080/user/auth/registration
. - Browse available wholesale products at
localhost:8080/product/wholesale-products
. - Buy product
localhost:8080/product/buy-product
. - Purchase products to resell on
localhost:8080/product/market-products
. - Automated tasks will simulate sales at predefined intervals.
- Fork the project.
- Create your feature branch (
git checkout -b feature/AmazingFeature
). - Commit your changes (
git commit -m 'Add some AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a Pull Request.
![Screenshot 2023-08-19 221531](https://private-user-images.githubusercontent.com/103985861/261864533-07f12655-3828-4b88-98fe-5500b2fa8bd3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjgzODgsIm5iZiI6MTczOTQyODA4OCwicGF0aCI6Ii8xMDM5ODU4NjEvMjYxODY0NTMzLTA3ZjEyNjU1LTM4MjgtNGI4OC05OGZlLTU1MDBiMmZhOGJkMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwNjI4MDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MGJhOTliYzljMTA5N2U1M2RkNzE1Yjg1YWZjODZlMGQ0MjNiNDgxZWQ2ODUyNDM3ODZmMGM2YjJkNTU2N2U5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.mW2X-Jirv2Mp2r_N40wJT5FGbT09nQOGed9bsAieUAI)