{"id":27772337,"url":"https://github.com/mohammadalmalt/eshopbackend","last_synced_at":"2026-04-10T01:04:20.323Z","repository":{"id":290246298,"uuid":"973799969","full_name":"mohammadalmalt/EShopBackend","owner":"mohammadalmalt","description":"A Spring Boot-based RESTful API for an e-commerce platform with user authentication, product management, order processing, and admin capabilities.","archived":false,"fork":false,"pushed_at":"2025-04-28T09:26:57.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T23:58:46.209Z","etag":null,"topics":["api","cucumber","database","h2-database","java","jp","jwt","jwt-authentication","openapi","rest-api","security","spring-boot","swagger","testing"],"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/mohammadalmalt.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":"2025-04-27T19:02:12.000Z","updated_at":"2025-04-28T09:27:01.000Z","dependencies_parsed_at":"2025-04-27T20:34:20.603Z","dependency_job_id":null,"html_url":"https://github.com/mohammadalmalt/EShopBackend","commit_stats":null,"previous_names":["mohammadalmalt/eshopbackend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadalmalt%2FEShopBackend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadalmalt%2FEShopBackend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadalmalt%2FEShopBackend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadalmalt%2FEShopBackend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohammadalmalt","download_url":"https://codeload.github.com/mohammadalmalt/EShopBackend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251602814,"owners_count":21615963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","cucumber","database","h2-database","java","jp","jwt","jwt-authentication","openapi","rest-api","security","spring-boot","swagger","testing"],"created_at":"2025-04-29T23:58:50.386Z","updated_at":"2025-12-30T23:05:04.296Z","avatar_url":"https://github.com/mohammadalmalt.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-commerce Backend API\n\n[![Build Status](https://img.shields.io/badge/build-passing-brightgreen)](https://shields.io/)\n[![License](https://img.shields.io/badge/license-MIT-blue)](https://opensource.org/licenses/MIT)\n[![Made with](https://img.shields.io/badge/Made%20with-Java%20Spring%20Boot-ff69b4.svg)](https://spring.io/projects/spring-boot)\n\nA **Spring Boot**-based RESTful API for an e-commerce platform with user authentication, product management, and order processing.\n\n---\n\n## ✨ Features\n\n- User registration and login with JWT-based authentication\n- Product browsing, searching, and filtering\n- Shopping cart and order management\n- Admin capabilities for product CRUD operations\n- Swagger/OpenAPI documentation\n- H2 in-memory database\n- Unit and integration tests with JUnit, MockMvc, and Cucumber\n\n---\n\n## 🛠 Tech Stack\n\n- Spring Boot 3.3.4\n- Spring Security with JWT\n- Spring Data JPA\n- H2 Database\n- ModelMapper for DTO mapping\n- Swagger/OpenAPI for API documentation\n- JUnit 5 and Cucumber for testing\n\n---\n\n## 🚀 Setup\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone \u003crepository-url\u003e\n   ```\n2. **Navigate to the project directory:**\n    ```bash\n    cd ecommerce-backend\n   ```\n3. **Build and run the application:**\n    ```bash\n   mvn spring-boot:run\n   ```\n4. **Access the API**:\n    ```bash\n   - [Swagger UI](http://localhost:8080/swagger-ui.html)\n   - [H2 Console](http://localhost:8080/h2-console)\n\n      ```\n## 📚 API Endpoints\n\n| Category | Method | Endpoint | Description |\n|:---------|:-------|:---------|:------------|\n| Auth     | POST   | `/api/auth/register` | Register a new user |\n| Auth     | POST   | `/api/auth/login` | Login and receive JWT token |\n| Products | GET    | `/api/products` | Get all products |\n| Products | POST   | `/api/products` | Create a new product (Admin) |\n| Products | GET    | `/api/products/{id}` | Get product by ID |\n| Products | PUT    | `/api/products/{id}` | Update product by ID (Admin) |\n| Products | DELETE | `/api/products/{id}` | Delete product by ID (Admin) |\n| Orders   | GET    | `/api/orders` | Get all orders |\n| Orders   | POST   | `/api/orders` | Create a new order |\n| Orders   | GET    | `/api/orders/{id}` | Get order by ID |\n| Orders   | PUT    | `/api/orders/{id}/status` | Update order status (Admin) |\n\n---\n\n## 🧪 Testing\n\nRun all tests with:\n\n```bash\nmvn test\n```\n## ⚡ Notes\n\n\u003e - Replace `your-256-bit-secret-key-for-jwt-signing` in `application.yml` with a secure key.\n\u003e - Product image uploads are simulated using `imageUrl` fields.\n\u003e - The application uses an in-memory H2 database for development purposes.\n\nMade with ❤️ by Mohammad Almalt 😎\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadalmalt%2Feshopbackend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohammadalmalt%2Feshopbackend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadalmalt%2Feshopbackend/lists"}