{"id":15091355,"url":"https://github.com/syedabdullahrahman/e-commerce","last_synced_at":"2026-01-30T00:02:22.949Z","repository":{"id":246261253,"uuid":"820549858","full_name":"syedabdullahrahman/e-commerce","owner":"syedabdullahrahman","description":"A REST API for e-commerce applications, built with Spring Boot 3.2.2. This API provides essential features for managing products, customer wish lists, and sales analytics.","archived":false,"fork":false,"pushed_at":"2024-10-24T10:17:23.000Z","size":825,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T07:14:17.030Z","etag":null,"topics":["auditing","e-commerce","e-commerce-project","ecommerce","ecommerce-database","grafana","grafana-dashboard","liquibase","logging","mysql","openapi","openapi-specification","prometheus","prometheus-metrics","slf4j","spring-boot","spring-data","spring-data-jpa","spring-data-rest","swagger-ui"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syedabdullahrahman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-26T17:37:00.000Z","updated_at":"2024-10-24T10:17:26.000Z","dependencies_parsed_at":"2024-10-23T02:33:55.531Z","dependency_job_id":"1f997b46-a411-4ab2-bd5a-8d167d3a6677","html_url":"https://github.com/syedabdullahrahman/e-commerce","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.0714285714285714,"last_synced_commit":"4b17d034609c95445f77c37a331dc0a3e8f2ac91"},"previous_names":["syedabdullahrahman/e-commerce"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/syedabdullahrahman/e-commerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syedabdullahrahman%2Fe-commerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syedabdullahrahman%2Fe-commerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syedabdullahrahman%2Fe-commerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syedabdullahrahman%2Fe-commerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syedabdullahrahman","download_url":"https://codeload.github.com/syedabdullahrahman/e-commerce/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syedabdullahrahman%2Fe-commerce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28891319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auditing","e-commerce","e-commerce-project","ecommerce","ecommerce-database","grafana","grafana-dashboard","liquibase","logging","mysql","openapi","openapi-specification","prometheus","prometheus-metrics","slf4j","spring-boot","spring-data","spring-data-jpa","spring-data-rest","swagger-ui"],"created_at":"2024-09-25T10:40:33.606Z","updated_at":"2026-01-30T00:02:22.923Z","avatar_url":"https://github.com/syedabdullahrahman.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌟 Simple E-commerce REST API\n\n[![Build and Test](https://github.com/syedabdullahrahman/e-commerce/actions/workflows/maven.yml/badge.svg)](https://github.com/syedabdullahrahman/e-commerce/actions/workflows/maven.yml)\n\n---\n\n## 📚 Table of Contents\n- [Technologies Used](#technologies-used)\n- [Features](#features)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n  - [Database Schema](#database-schema)\n- [Screenshots](#screenshots)\n- [Contributing](#contributing)\n- [License](#license)\n\n---\n\n## 🛠️ Technologies Used\n\nThis project leverages a variety of powerful technologies to create a seamless e-commerce experience:\n\n- **Java 17**\n- **Spring Boot 3.2.2**\n- **Spring Data JPA**\n- **Hibernate**\n- **MySQL**\n- **PostgreSQL**\n- **Maven**\n- **Liquibase**\n- **OpenAPI**\n- **Docker**\n- **Spring Data REST**\n- **Test Containers**\n- **Prometheus**\n- **Grafana**\n- **Tempo**\n\n---\n\n## 🚀 Features\n\nDiscover the robust features of this e-commerce API:\n\n- **Customer Wish List**: Easily retrieve and manage customer wish lists.\n- **Sales Insights**: Get total sales for the current day and identify peak sales days.\n- **Top Selling Items**: Fetch top N selling items of all time and for the last month based on sales metrics.\n- **Integration Testing**: Robust integration testing using Test Containers for both MySQL and PostgreSQL databases, ensuring quality across different environments.\n- **Observability**: Monitor application performance with Prometheus, Grafana, and Tempo.\n\n---\n\n## 🏁 Getting Started\n\n### Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- **Java 17+**\n- **Docker**\n\n### Installation\n\nFollow these steps to get your local environment up and running:\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/syedabdullahrahman/e-commerce.git\n   ```\n2. **Navigate to the project directory**:\n   ```bash\n   cd e-commerce\n   ```\n3. **Build the project using Maven**:\n   ```bash\n   mvn clean install\n   ```\n4. **Run the application**:\n   ```bash\n   java -jar target/demo-0.0.1-SNAPSHOT.jar\n   ```\n\n### OR\n\n**Run the application using Docker Compose**:\n```bash\ndocker-compose up\n```\n\n---\n\n## 📸 Screenshots\n\nHere’s a glimpse of the application in action:\n\n- **OpenAPI / Swagger UI for API testing**\n  ![OpenAPI](screenshots/swagger-ui.PNG)\n\n- **Application HTTP requests metrics**\n  ![HTTP Metrics](screenshots/grafana-ecommerce-app-stat.PNG)\n\n- **Overall application metrics**\n  ![Overall Metrics](screenshots/grafana-spring-boot-stat.PNG)\n\n### 📊 Database Schema\n\nThe database schema is derived from the [MySQL Sample Database](https://www.mysqltutorial.org/getting-started-with-mysql/mysql-sample-database/). Here’s the schema diagram:\n\n![Database Schema](mysql-sample-database.png)\n\n---\n\n## 🤝 Contributing\n\nWe welcome contributions! If you'd like to contribute, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature/YourFeature`).\n3. Make your changes and commit them (`git commit -m 'Add some feature'`).\n4. Push to the branch (`git push origin feature/YourFeature`).\n5. Open a pull request.\n\n---\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\nFeel free to reach out if you have any questions or suggestions!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyedabdullahrahman%2Fe-commerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyedabdullahrahman%2Fe-commerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyedabdullahrahman%2Fe-commerce/lists"}