{"id":20520780,"url":"https://github.com/erebelo/spring-mysql-demo","last_synced_at":"2025-08-09T16:24:03.902Z","repository":{"id":240780104,"uuid":"803435894","full_name":"erebelo/spring-mysql-demo","owner":"erebelo","description":"Java REST API project using Spring Boot 3 and MySQL database","archived":false,"fork":false,"pushed_at":"2025-03-24T23:35:12.000Z","size":231,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T00:26:58.969Z","etag":null,"topics":["back-end","backend","backend-api","backend-service","java","mysql","mysql-database","relational-database","spring","spring-boot","springboot","sql"],"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/erebelo.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-05-20T18:08:56.000Z","updated_at":"2025-03-24T23:35:16.000Z","dependencies_parsed_at":"2024-06-06T19:24:46.599Z","dependency_job_id":"17b375b5-1c5f-4347-915f-eafa09a851f5","html_url":"https://github.com/erebelo/spring-mysql-demo","commit_stats":null,"previous_names":["erebelo/spring-mysql-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erebelo/spring-mysql-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erebelo%2Fspring-mysql-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erebelo%2Fspring-mysql-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erebelo%2Fspring-mysql-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erebelo%2Fspring-mysql-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erebelo","download_url":"https://codeload.github.com/erebelo/spring-mysql-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erebelo%2Fspring-mysql-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264585319,"owners_count":23632647,"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":["back-end","backend","backend-api","backend-service","java","mysql","mysql-database","relational-database","spring","spring-boot","springboot","sql"],"created_at":"2024-11-15T22:22:54.891Z","updated_at":"2025-07-10T13:35:01.351Z","avatar_url":"https://github.com/erebelo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring MySQL Demo\n\nREST API project developed in Java using Spring Boot 3 and MySQL database.\n\n## Requirements\n\n- Java 17\n- Spring Boot 3.x.x\n- Apache Maven 3.8.6\n\n## Libraries\n\n- [spring-common-parent](https://github.com/erebelo/spring-common-parent): Manages the Spring Boot version and provide common configurations for plugins and formatting.\n\n## Configuring Maven for GitHub Dependencies\n\nTo pull the `spring-common-parent` dependency, follow these steps:\n\n1. **Generate a Personal Access Token**:\n\n   Go to your GitHub account -\u003e **Settings** -\u003e **Developer settings** -\u003e **Personal access tokens** -\u003e **Tokens (classic)** -\u003e **Generate new token (classic)**:\n\n    - Fill out the **Note** field: `Pull packages`.\n    - Set the scope:\n        - `read:packages` (to download packages)\n    - Click **Generate token**.\n\n2. **Set Up Maven Authentication**:\n\n   In your local Maven `settings.xml`, define the GitHub repository authentication using the following structure:\n\n   ```xml\n   \u003cservers\u003e\n     \u003cserver\u003e\n       \u003cid\u003egithub-spring-common-parent\u003c/id\u003e\n       \u003cusername\u003eUSERNAME\u003c/username\u003e\n       \u003cpassword\u003eTOKEN\u003c/password\u003e\n     \u003c/server\u003e\n   \u003c/servers\u003e\n   ```\n\n   **NOTE**: Replace `USERNAME` with your GitHub username and `TOKEN` with the personal access token you just generated.\n\n## Run App\n\n- Create a new database schema named: `mysql_demo`\n- Set the following environment variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USERNAME`, and `DB_PASSWORD`.\n- Run the `SpringMySQLDemoApplication` class as Java Application.\n\n## Collection\n\n[Project Collection](https://github.com/erebelo/spring-mysql-demo/tree/main/collection)\n\n## DB Setup\n\n[MySQL Server Setup](https://github.com/erebelo/spring-mysql-demo/tree/main/db-setup)\n\n## Diagram\n\n[Entity Relationship Diagram](https://github.com/erebelo/spring-mysql-demo/tree/main/db-setup/Entity%20Relationship%20Diagram.png)\n\n## Script\n\n[MySQL Demo Script](https://github.com/erebelo/spring-mysql-demo/tree/main/db-setup/mysql_demo_script.sql)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferebelo%2Fspring-mysql-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferebelo%2Fspring-mysql-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferebelo%2Fspring-mysql-demo/lists"}