{"id":48915837,"url":"https://github.com/lex-lopez/e-commerce-app","last_synced_at":"2026-04-17T02:35:30.612Z","repository":{"id":303883221,"uuid":"1017017239","full_name":"lex-lopez/e-commerce-app","owner":"lex-lopez","description":"This is real world, production ready app for e-commerce built with Spring Boot 3 + Maven, that implements proper auth with JWT, communication based on RESTful APIs and Database versioning using Flyway","archived":false,"fork":false,"pushed_at":"2025-07-30T20:04:14.000Z","size":165,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-30T22:50:47.187Z","etag":null,"topics":["cicd","flyway","github-actions","jwt-authentication","refresh-token","restful-api","security","spring-security","sprint-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lex-lopez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-09T22:33:17.000Z","updated_at":"2025-07-30T20:04:16.000Z","dependencies_parsed_at":"2025-07-10T08:53:26.639Z","dependency_job_id":"44d68f82-e497-4346-9aca-7c8a6fe2ccb7","html_url":"https://github.com/lex-lopez/e-commerce-app","commit_stats":null,"previous_names":["lex-lopez/e-commerce-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lex-lopez/e-commerce-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lex-lopez%2Fe-commerce-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lex-lopez%2Fe-commerce-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lex-lopez%2Fe-commerce-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lex-lopez%2Fe-commerce-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lex-lopez","download_url":"https://codeload.github.com/lex-lopez/e-commerce-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lex-lopez%2Fe-commerce-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31912593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cicd","flyway","github-actions","jwt-authentication","refresh-token","restful-api","security","spring-security","sprint-boot"],"created_at":"2026-04-17T02:35:29.631Z","updated_at":"2026-04-17T02:35:30.590Z","avatar_url":"https://github.com/lex-lopez.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-Commerce Store Application\n\nA modern e-commerce application built with Spring Boot 3 and Java 23, providing a robust platform for online retail operations with secure user authentication and payment processing capabilities.\n\n## Features\n\n- 🔐 Secure authentication and authorization using Spring Security and JWT\n- 💳 Payment processing integration with Stripe\n- 🛍️ Product management and inventory control\n- 👤 User role-based access control (Admin/Customer)\n- 📝 Database migrations with Flyway\n- 📚 API documentation with SpringDoc OpenAPI\n- 🎨 Server-side rendering with Thymeleaf\n- ✅ Input validation and data integrity checks\n- 🗃️ MySQL database with JPA/Hibernate\n\n## Security\n\nThis application implements a robust security model using:\n- JWT-based authentication\n- Role-based access control\n- Spring Security configuration\n- Secure password handling\n\n## Architecture\n\n```mermaid \ngraph TD\n    Client[Client Browser/App] --\u003e|HTTP/HTTPS| LB[Load Balancer]\n    LB --\u003e API[Spring Boot Application]\n\n    subgraph Backend_Services [Backend Services]\n        API --\u003e|JPA| DB[(MySQL Database)]\n        API --\u003e|REST| Stripe[Stripe Payment]\n        API --\u003e|Template Engine| Thym[Thymeleaf]\n    end\n\n    subgraph Security_Layer [Security Layer]\n        API --\u003e|Authenticate| JWT[JWT Service]\n        API --\u003e|Authorize| Security[Spring Security]\n    end\n\n    subgraph Data_Management [Data Management]\n        DB --\u003e|Migration| Flyway[Flyway]\n        API --\u003e|Mapping| MapStruct[MapStruct]\n    end\n```\n\n## Technologies\n\n- **Java 23**\n- **Spring Boot 3.4.1**\n- **Spring Security**\n- **Spring Data JPA**\n- **MySQL**\n- **Flyway Migration**\n- **JWT (JSON Web Tokens)**\n- **Thymeleaf**\n- **MapStruct**\n- **Lombok**\n- **Stripe API**\n- **SpringDoc OpenAPI**\n- **Maven**\n\n## Prerequisites\n\nBefore running this application, make sure you have:\n\n- Java 17 or higher installed\n- Maven build tool\n- MySQL Server\n- IDE (recommended: IntelliJ IDEA, Eclipse, or VS Code)\n\n## Getting Started\n\n1. Clone the repository\n2. Configure the environment variables:\n  - Copy `.env.example` to `.env`\n  - Update the variables with your configurations\n\n3. Configure the database:\n  - Create a MySQL database\n    - suggested url: `jdbc:mysql://localhost:3306/store?createDatabaseIfNotExist=true`\n  - Update `application.properties` or environment variables with your database credentials\n  - local development:\n    - make sure to update `flyway.config` to be able to run migrations using maven goals (e.g. `mvn flyway:migrate`)\n\n4. Run the database migrations\n5. Build and run the application\n\n## Project Structure\n\nsrc/ \\\n├── main/ │ \\\n├── java/ │ \\\n│ └── com/alopez/store/ \\\n│ │ ├── admin/ # Admin-specific components \\\n│ │ ├── auth/ # Authentication and security \\\n│ │ └── [other-packages] \\\n│ └── resources/ \\\n│ ├── db/migration/ # Flyway migrations \\\n│ ├── templates/ # Thymeleaf templates \\\n│ └── application.properties \\\n\n\n## API Documentation\n\nOnce the application is running, you can access the API documentation at:\n- Swagger UI: `http://localhost:8080/swagger-ui.html`\n- OpenAPI spec: `http://localhost:8080/v3/api-docs`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flex-lopez%2Fe-commerce-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flex-lopez%2Fe-commerce-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flex-lopez%2Fe-commerce-app/lists"}