{"id":23021044,"url":"https://github.com/evertonsavio/sql-schema-from-csv","last_synced_at":"2025-04-02T18:43:36.526Z","repository":{"id":262132045,"uuid":"886268544","full_name":"evertonsavio/sql-schema-from-csv","owner":"evertonsavio","description":"Spring Boot application that creates a SQL schema with multiple tables from a csv file in H2 database at application startup. Integration test included.","archived":false,"fork":false,"pushed_at":"2024-11-12T18:51:41.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T09:24:23.037Z","etag":null,"topics":[],"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/evertonsavio.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}},"created_at":"2024-11-10T16:23:49.000Z","updated_at":"2024-11-12T18:51:44.000Z","dependencies_parsed_at":"2024-11-10T18:49:34.858Z","dependency_job_id":null,"html_url":"https://github.com/evertonsavio/sql-schema-from-csv","commit_stats":null,"previous_names":["evertonsavio/sql-schema-from-csv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evertonsavio%2Fsql-schema-from-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evertonsavio%2Fsql-schema-from-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evertonsavio%2Fsql-schema-from-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evertonsavio%2Fsql-schema-from-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evertonsavio","download_url":"https://codeload.github.com/evertonsavio/sql-schema-from-csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246871430,"owners_count":20847478,"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":[],"created_at":"2024-12-15T12:16:14.576Z","updated_at":"2025-04-02T18:43:36.496Z","avatar_url":"https://github.com/evertonsavio.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot Service\n\n---\n## Prerequisites\n\n- Java 21\n- Maven 3.6+\n- Docker (optional, for containerization)\n- GraalVM (optional, for native images)\n\n## Setup\n\n1. **Clone the repository:**\n\n   ```sh\n   git clone \u003crepository-url\u003e\n   cd sql-schema-from-csv\n   ```\n\n2. **( OPTIONAL ) Install GraalVM:**\n\n   Follow the instructions on the [GraalVM website](https://www.graalvm.org/docs/getting-started/) to install GraalVM.\n\n3. **Set GraalVM as the default JDK:**\n\n   ```sh\n   export JAVA_HOME=/path/to/graalvm\n   export PATH=$JAVA_HOME/bin:$PATH\n   ```\n\n## Build and Run\n\n1. **Build the project:**\n\n   ```sh\n   ./mvnw clean install\n   ```\n\n2. **Run the application:**\n\n   ```sh\n   ./mvnw spring-boot:run\n   ```\n\n## Running Tests\n\n1. **Run integration tests:**\n\n   ```sh\n   ./mvnw verify\n   ```\n\n## Endpoints\n\n- **Get Producers Awards Interval:**\n\n  ```\n  GET /v1/producers\n  ```\n\n  Example response:\n\n  ```json\n  {\n    \"min\": [\n        {\n            \"producer\": \"Joel Silver\",\n            \"interval\": 1,\n            \"previousWin\": 1990,\n            \"followingWin\": 1991\n        }\n    ],\n    \"max\": [\n        {\n            \"producer\": \"Matthew Vaughn\",\n            \"interval\": 13,\n            \"previousWin\": 2002,\n            \"followingWin\": 2015\n        }\n    ]\n  }\n  ```\n\n## Additional Information\n\nFor more details, refer to the [Spring Boot documentation](https://spring.io/projects/spring-boot) and [GraalVM documentation](https://www.graalvm.org/docs/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevertonsavio%2Fsql-schema-from-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevertonsavio%2Fsql-schema-from-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevertonsavio%2Fsql-schema-from-csv/lists"}