{"id":16982765,"url":"https://github.com/olegakbarov/go-web-app","last_synced_at":"2026-04-13T13:32:59.455Z","repository":{"id":102334610,"uuid":"83973981","full_name":"olegakbarov/go-web-app","owner":"olegakbarov","description":"Core API and Docker entry point repo","archived":false,"fork":false,"pushed_at":"2017-06-17T17:40:43.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T00:27:26.596Z","etag":null,"topics":["docker","go","golang","nginx","postgresql"],"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/olegakbarov.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":"2017-03-05T13:57:04.000Z","updated_at":"2023-03-04T06:26:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca8ba3e4-5499-4779-978f-eb481847e90e","html_url":"https://github.com/olegakbarov/go-web-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/olegakbarov/go-web-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegakbarov%2Fgo-web-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegakbarov%2Fgo-web-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegakbarov%2Fgo-web-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegakbarov%2Fgo-web-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olegakbarov","download_url":"https://codeload.github.com/olegakbarov/go-web-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegakbarov%2Fgo-web-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31755009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T13:27:56.013Z","status":"ssl_error","status_checked_at":"2026-04-13T13:21:23.512Z","response_time":93,"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","go","golang","nginx","postgresql"],"created_at":"2024-10-14T02:25:46.013Z","updated_at":"2026-04-13T13:32:59.438Z","avatar_url":"https://github.com/olegakbarov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### io.confs.core\n\nDockerized API service\n\n### Prerequisites\n\n- Go\n- Docker\n\n### Start\n\n### Develop\n\nTODO\n\nORM: https://upper.io/db.v2/examples\n\n### Ports cheatsheet\n\nInside containers:\n\n```\n1337 — frontend\n3000 — grafana\n6666 — postgres\n8086, 8083 — influxdb\n8080 — cadvisor\n9999 — api\n```\n\nExposed:\n\n### Linking containers caveats\n\n```yaml\nlinks:\n  - api:api\n```\n\nThis creates environment variables in proxy container, with ip and port info for go container, also creates entries in /etc/hosts with ip info [other container]:[alias in this container]\n\n```yaml\nvolumes:\n    - ./nginx.conf:/etc/nginx/nginx.conf:ro\n```\n\n- Conntect host's `./nginx.conf` with container's `nginx.conf`\n\n- `:ro` means read only perms in container\n\n### Docker tips\n\nRun Docker image with port-forwarding: `docker run -it -p 8080:8080 confsio_img`\n\nInspect container's ENV variables: `docker inspect -f \"{{ .Config.Env }}\" container-id`\n\nCopy file from container to host: `docker cp \u003ccontainerId\u003e:/file/path/within/container /host/path/target`\n\n### Docker Monitoring\n\nhttps://www.brianchristner.io/how-to-setup-docker-monitoring/\n\n###  $ Curls\n\n#### edit :id \u0026 :user-id\n\n```\ncurl -H \"Content-Type: application/json\" -X PUT -d '{ \"name\": \"UPDATED CONF\", \"start_date\": \"2017-10-19T08:00:00Z\", \"end_date\": \"2017-10-22T08:00:00Z\", \"description\": \"yolo\", \"picture\": null, \"country\": \"USA\", \"city\": \"SF\", \"address\": \"Rodeo drive 1\", \"category\": \"big data\", \"tickets_available\": false, \"discount_program\": false, \"min_price\": 0, \"max_price\": 100, \"facebook\": \"\", \"youtube\": \"\", \"twitter\": \"\", \"details\": {}, \"id\": :id, \"added_by\": :user-id}' http://localhost:9999/api/v1/conf/:id\n```\n\n#### create\n\n```\ncurl -H \"Content-Type: application/json\" -X POST -d '{ \"name\": \"CREATED!CONF\", \"start_date\": \"2017-10-19T08:00:00Z\", \"end_date\": \"2017-10-22T08:00:00Z\", \"description\": \"yolo\", \"picture\": null, \"country\": \"USA\", \"city\": \"SF\", \"address\": \"Rodeo drive 1\", \"category\": \"big data\", \"tickets_available\": false, \"discount_program\": false, \"min_price\": 0, \"max_price\": 100, \"facebook\": null, \"youtube\": null, \"twitter\": null, \"details\": {}}' http://localhost:9999/api/v1/conf\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegakbarov%2Fgo-web-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folegakbarov%2Fgo-web-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegakbarov%2Fgo-web-app/lists"}