{"id":15757499,"url":"https://github.com/cbrgm/springboot-demo","last_synced_at":"2025-04-30T20:08:18.659Z","repository":{"id":115936989,"uuid":"212103158","full_name":"cbrgm/springboot-demo","owner":"cbrgm","description":"Tiny Spring Boot webservice to manage study courses and studens, for demo purposes","archived":false,"fork":false,"pushed_at":"2019-11-30T21:34:07.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T20:08:12.960Z","etag":null,"topics":["boot","demo","rest-api","spring","springboot"],"latest_commit_sha":null,"homepage":null,"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/cbrgm.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":"2019-10-01T13:28:39.000Z","updated_at":"2019-12-05T08:48:04.000Z","dependencies_parsed_at":"2023-03-13T13:00:17.536Z","dependency_job_id":null,"html_url":"https://github.com/cbrgm/springboot-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Fspringboot-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Fspringboot-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Fspringboot-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Fspringboot-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbrgm","download_url":"https://codeload.github.com/cbrgm/springboot-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251774896,"owners_count":21641731,"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":["boot","demo","rest-api","spring","springboot"],"created_at":"2024-10-04T09:21:40.688Z","updated_at":"2025-04-30T20:08:18.640Z","avatar_url":"https://github.com/cbrgm.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot Demo\n\nEinfache Spring Boot Web Application um Kurse und Studenten zu verwalten.\n\n## Vorraussetzungen:\n\n* PostgreSQL DB\n* Java 11+\n* gradle\n\n## Datenbankverbindung:\n\nZugangsdaten hinzufügen unter: `src/main/resources/application.properties`:\n\n```\n## Spring DATASOURCE (DataSourceAutoConfiguration \u0026 DataSourceProperties)\nspring.datasource.url=jdbc:postgresql://localhost:5432/postgres\nspring.datasource.username=postgres\nspring.datasource.password=postgres\n```\n\nDefault: User `postgres`, Password `postgres`, DB `postgres`\n\nStarten z.B. als Container (podman, docker, ...):\n```\ndocker run --rm -it -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB= postgres:latest\n```\n\n## Starten des Webservices\n\n```\ngradle bootRun\n```\n\n## Ausprobieren\n\n\nEinen neuen Studiengang hinzufügen:\n```\ncurl -X POST -H 'Content-Type: application/json' -i http://localhost:8080/courses --data '{\n  \"title\": \"Software Engineering\",\n  \"description\": \"Eine spassige Sache!\"\n}'\n```\n\nResponse:\n\n```\n{\n  \"createdAt\": \"2019-10-01T13:24:43.442+0000\",\n  \"updatedAt\": \"2019-10-01T13:24:43.442+0000\",\n  \"id\": 1001,\n  \"title\": \"Software Engineering\",\n  \"description\": \"Eine spassige Sache!\"\n}\n```\n\nAlle Studiengaegne anzeigen:\n\n```\ncurl -H 'Content-Type: application/json' -i http://localhost:8080/courses\n```\n\n## Kontakt\n\n* Christian Bargmann \u003cchristian.bargmann@haw-hamburg.de\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbrgm%2Fspringboot-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbrgm%2Fspringboot-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbrgm%2Fspringboot-demo/lists"}