{"id":30172963,"url":"https://github.com/sempedia/spring_boot_api","last_synced_at":"2026-04-11T14:03:52.461Z","repository":{"id":309024775,"uuid":"982192381","full_name":"sempedia/spring_boot_api","owner":"sempedia","description":"Java Spring Boot API ","archived":false,"fork":false,"pushed_at":"2025-08-09T09:22:31.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T11:33:39.120Z","etag":null,"topics":["hibernate-orm","java","java17","jpa-entities","jpa-hibernate","jpa-repository","maven","maven-pom","mysql","mysql-database","pom-xml","rest-api","spring-mvc","springboot","springboot-api"],"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/sempedia.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-05-12T14:05:55.000Z","updated_at":"2025-08-09T09:26:35.000Z","dependencies_parsed_at":"2025-08-09T11:43:47.616Z","dependency_job_id":null,"html_url":"https://github.com/sempedia/spring_boot_api","commit_stats":null,"previous_names":["sempedia/spring_boot_api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/sempedia/spring_boot_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sempedia%2Fspring_boot_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sempedia%2Fspring_boot_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sempedia%2Fspring_boot_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sempedia%2Fspring_boot_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sempedia","download_url":"https://codeload.github.com/sempedia/spring_boot_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sempedia%2Fspring_boot_api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269970137,"owners_count":24505478,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"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":["hibernate-orm","java","java17","jpa-entities","jpa-hibernate","jpa-repository","maven","maven-pom","mysql","mysql-database","pom-xml","rest-api","spring-mvc","springboot","springboot-api"],"created_at":"2025-08-11T23:20:09.666Z","updated_at":"2025-12-30T21:47:16.532Z","avatar_url":"https://github.com/sempedia.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Spring Boot API 🚀\n\nThis is a RESTful API built with **Spring Boot** to manage **customer, order, and product** related data. The application uses **Java 17**, **Spring Data JPA**, and **Hibernate** with a **MySQL** database.\n\n---\n\n## 💻 Tech Stack\n\n* **Java 17**: The primary programming language.\n* **Spring Boot**: The framework used to build the API.\n* **Spring Data JPA**: Simplifies data access and persistence layers.\n* **Hibernate**: The Object-Relational Mapping (ORM) tool.\n* **MySQL**: The relational database management system.\n* **Maven**: The project build automation tool.\n\n---\n\n## ⚙️ Configuration\n\nThe application is configured using `application.properties`. Below are the key properties:\n\n| Property                      | Description                                                                                                                              |\n| :---------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------- |\n| `spring.application.name`     | The name of the application.                                                                                                             |\n| `server.port`                 | The port on which the application runs.                                                                                                  |\n| `spring.datasource.url`       | The JDBC URL for the MySQL database.                                                                                                     |\n| `spring.datasource.username`  | The database username.                                                                                                                   |\n| `spring.datasource.password`  | The database password.                                                                                                                   |\n| `spring.jpa.hibernate.ddl-auto` | Specifies the action to be performed on the database schema. Set to `update` to automatically update the schema based on your entities. |\n| `spring.jpa.show-sql`         | A boolean flag to show SQL statements in the console.                                                                                    |\n\n---\n\n## ▶️ Getting Started\n\n### Prerequisites\n\n* **Java 17 SDK**: Make sure you have it installed.\n* **Maven**: The project build automation tool.\n* **MySQL Server**: A running instance of MySQL.\n\n### Setup\n\n1.  **Clone the repository**:\n    ```bash\n    git clone git@github.com:sempedia/spring_boot_api.git\n    cd spring_boot_api\n    ```\n\n2.  **Database Setup**:\n    * Create a database named **`trendyol`** in your MySQL instance.\n    * Update the `spring.datasource.username` and `spring.datasource.password` in the `src/main/resources/application.properties` file with your MySQL credentials.\n\n3.  **Build and Run**:\n    * You can build and run the application using Maven:\n        ```bash\n        mvn spring-boot:run\n        ```\n    * Alternatively, you can run the main class `YourApplication.java` from your IDE.\n\n---\n\n## 📂 Project Structure\n\nThe application follows a standard layered architecture, separating concerns into distinct packages:\n\n* `src/main/java/com/example/yourapplicationname/` (Replace `yourapplicationname` with your actual base package):\n    * **`controller`**: Contains REST controllers that handle incoming HTTP requests and return responses.\n    * **`entity`**: Defines the JPA entities that map to database tables (e.g., `Customer`, `Order`, `Product`).\n    * **`repository`**: Provides interfaces for data access operations, extending `JpaRepository` for CRUD functionalities.\n    * **`service`**: Implements the business logic of the application, orchestrating calls to repositories and handling data transformations.\n\n---\n\n## 📖 API Endpoints\n\nThis section would detail the available API endpoints for Customer, Order, and Product management. For example:\n\n* **`GET /api/customers`**: Retrieves a list of all customers.\n* **`POST /api/customers`**: Creates a new customer.\n* **`GET /api/customers/{id}`**: Retrieves a specific customer by ID.\n* **`GET /api/orders`**: Retrieves a list of all orders.\n* **`POST /api/orders`**: Creates a new order.\n* **`GET /api/products`**: Retrieves a list of all products.\n* **`PUT /api/products/{id}`**: Updates an existing product.\n\n---\n\n## 🤝 Contribution\n\nAuthor: Alina Bazavan ([@sempedia](https://github.com/sempedia))\n\nFeel free to open issues or submit pull requests.\n\n---\n\n## 📄 License\n\nThis project is open source and available under the **MIT License**.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsempedia%2Fspring_boot_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsempedia%2Fspring_boot_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsempedia%2Fspring_boot_api/lists"}