{"id":18658541,"url":"https://github.com/voliveirajr/demorestapi","last_synced_at":"2026-03-03T21:02:26.709Z","repository":{"id":81345667,"uuid":"131429773","full_name":"voliveirajr/DemoRestAPI","owner":"voliveirajr","description":"A Demo Rest API using Spring Boot, MongoDB running in Docker containers","archived":false,"fork":false,"pushed_at":"2019-02-28T13:46:50.000Z","size":38,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-25T11:04:00.511Z","etag":null,"topics":["docker","docker-container","mongodb","spring","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voliveirajr.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}},"created_at":"2018-04-28T17:22:50.000Z","updated_at":"2020-06-08T03:11:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b744ba5-3c8e-4cd0-8f8c-6b0f7d986059","html_url":"https://github.com/voliveirajr/DemoRestAPI","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/voliveirajr/DemoRestAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voliveirajr%2FDemoRestAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voliveirajr%2FDemoRestAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voliveirajr%2FDemoRestAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voliveirajr%2FDemoRestAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voliveirajr","download_url":"https://codeload.github.com/voliveirajr/DemoRestAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voliveirajr%2FDemoRestAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30060646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","docker-container","mongodb","spring","spring-boot"],"created_at":"2024-11-07T07:33:24.983Z","updated_at":"2026-03-03T21:02:26.690Z","avatar_url":"https://github.com/voliveirajr.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo Rest API\nThis is a Demo rest API using Spring Boot, MongoDB running in docker containers defined by docker-compose yml file.\n\n![](https://cdn-images-1.medium.com/max/1200/1*02NqqST-JKZCDAPg9mOBiQ.png)\n\nA full article is available on this [medium post.](https://medium.com/@volmar.oliveira.jr/a-restapi-using-spring-boot-mongodb-running-on-docker-containers-5e530b48f45e)\n\n## Requirements\n- Java 8\n- Maven 3.3.9\n- Docker 1.13.1\n- Docker-compose 1.21.0\n\n## TL;DR - Build and Run\nWill build, package and create a new Docker image with the application\n \n```mvn clean package```\n \nLaunch an Application and a Mongo container\n\n```docker-compose up```\n\n## Docker\nThe docker file defines a container based on Java with the jar created by maven package, the `dockerfile-maven-plugin` is responsible to build a new image, a push could be configured in the pom file also.\n\n## Docker-compose\nThe Docker-compose file describes our multi-container application, the application consists in 2 containers, one running the DemoRestApi and a linked container with MongoDB. These containers have the 8080 port exposed for the RestAPI and 27017 for mongo (Just for testing purposes, should preferably removed)\n\n# Next Steps\n- Tests improvements\n- Authentication\n\nThis is just a initial implementation to be used as example exercising Spring boot, Docker, MongoDB. Another features and technologies will be added to this project.\n\n## Author\nVolmar Oliveira Junior\n\nvolmar.oliveira.jr@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoliveirajr%2Fdemorestapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoliveirajr%2Fdemorestapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoliveirajr%2Fdemorestapi/lists"}