{"id":22455447,"url":"https://github.com/ahmedalaa14/go-app-mongo-deployment","last_synced_at":"2026-04-09T08:07:07.309Z","repository":{"id":249576625,"uuid":"831891509","full_name":"ahmedalaa14/go-app-mongo-deployment","owner":"ahmedalaa14","description":"Deploy Go App on Minikube","archived":false,"fork":false,"pushed_at":"2024-07-24T18:53:26.000Z","size":7449,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T13:18:00.108Z","etag":null,"topics":["docker","docker-compose","go","kuebrnetes","mongodb"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ahmedalaa14.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-07-21T23:14:43.000Z","updated_at":"2024-07-24T18:53:29.000Z","dependencies_parsed_at":"2024-07-24T21:27:29.664Z","dependency_job_id":null,"html_url":"https://github.com/ahmedalaa14/go-app-mongo-deployment","commit_stats":null,"previous_names":["ahmedalaa14/go-app-mongo-deployment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahmedalaa14/go-app-mongo-deployment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2Fgo-app-mongo-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2Fgo-app-mongo-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2Fgo-app-mongo-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2Fgo-app-mongo-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmedalaa14","download_url":"https://codeload.github.com/ahmedalaa14/go-app-mongo-deployment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2Fgo-app-mongo-deployment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265705437,"owners_count":23814455,"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":["docker","docker-compose","go","kuebrnetes","mongodb"],"created_at":"2024-12-06T07:11:54.052Z","updated_at":"2026-04-09T08:07:07.276Z","avatar_url":"https://github.com/ahmedalaa14.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy Go App on Minikube\n\n- This application is a simple survey where the go app run on `localhost:8080` and when you send a `POST` request as a `JSON` format it will be added automatically in the `MONGODB` database.\n\n## 1. Deploy application on `Minikube`:\n\n`NOTE:` Make sure `Minikube` is already installed and running using `minikube start`\n\n```\nchmod +x deploy.sh\n\ndeploy.sh\n```\n\n## 2. Get application and Mongodb `URL`:\n\n```\nminikube service -n go-survey go-app --url\n\nminikube service -n go-survey mongo-app-service --url\n```\n\nOutput:\n\nThe outputs are the URL for both the Go App and MongoDB\n\n```\nhttp://\u003cyour-ip\u003e:\u003cport\u003e\nhttp://\u003cyour-ip\u003e:\u003cport\u003e\n```\n\n## 3. `GET` and `POST` request\n\nUsing [Postman](https://www.postman.com/) and the following input:\n\nThe `Header` for `mongodb` using `GET` request:\n\n```\nAccept: application/json\n```\n\nThe `Header` for `App` using `POST` request:\n\n```\nAccept: application/json\nContent-Type: application/json\n```\n\n## 4. Access the Database using [Studio3T](https://studio3t.com/knowledge-base/articles/installation/)\n\nConnect to the Database using the following inputs:\n\n```\nURI: mongodb://\u003cyour-ip\u003e:\u003cport\u003e\nDatabase Name: surveyDB\n```\n\nOnce you connect to the Database use `Postman` to send a `POST` request using the app `URL`:\n\n```\nhttp://\u003cyour-ip\u003e:\u003cport\u003e\n```\n\nAnd to send request by writing in `JSON` format at the `Body (raw)` section as shown:\n\n```\n{\n    \"answer1\": \"Python\",\n    \"answer2\": \"PHP\",\n    \"answer3\": \"GoLang\"\n}\n```\n\nOnce you send a `POST` request the data should be shown in the `Database`\n\n### Finally to delete deployment:\n\n```\nchmod +x delete.sh\n\n./delete.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedalaa14%2Fgo-app-mongo-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmedalaa14%2Fgo-app-mongo-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedalaa14%2Fgo-app-mongo-deployment/lists"}