{"id":16229693,"url":"https://github.com/indaco/predix-go-sample-app","last_synced_at":"2025-08-16T13:54:02.330Z","repository":{"id":136250439,"uuid":"110250349","full_name":"indaco/predix-go-sample-app","owner":"indaco","description":"Sample web app in Go pushed to Predix Cloud reading data from PostgresDB on Predix.","archived":false,"fork":false,"pushed_at":"2017-11-10T13:33:07.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T03:48:16.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/indaco.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-11-10T13:32:42.000Z","updated_at":"2017-11-10T13:33:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd888d7b-3a08-498d-bf79-dab9796e61ed","html_url":"https://github.com/indaco/predix-go-sample-app","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/indaco%2Fpredix-go-sample-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indaco%2Fpredix-go-sample-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indaco%2Fpredix-go-sample-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indaco%2Fpredix-go-sample-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indaco","download_url":"https://codeload.github.com/indaco/predix-go-sample-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785920,"owners_count":20995642,"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-10-10T12:58:58.372Z","updated_at":"2025-04-08T05:43:04.013Z","avatar_url":"https://github.com/indaco.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Predix-Go-Sample-App\n\nSample web app in Go pushed to Predix Cloud reading data from PostgresDB on Predix.\n\n## Prerequisistes\n\n- Predix.io account\n- PostgreSQL instance on Predix\n\nOn your local machine:\n\n- CF CLI\n- Git\n- Go (v.1.9.x)\n- GoVendor: install it with `go get -u github.com/kardianos/govendor`\n\n## Get the app, configure and push to Predix\n\n1. Clone the repos:\n\n  ```shell\n  $ go get -u https://github.com/indaco/predix-go-sample-app\n  ```\n\n2. Move to the app folder:\n\n  ```shell\n  $ cd $GOPATH/src/github.com/indaco/predix-go-sample-app\n  ```\n\n3. Sync dependencies:\n\n  ```shell\n  $ $GOPATH/bin/govendor sync\n  ```\n\n4. Edit _config.json_ and update it with Predix Postgres credentials\n5. Use the sample `db.sql` file to create a dummy table with some entries on PostgreSQL or adapt the main.go code to reflect the data table on PostgreSQL\n6. Edit _manifest.yml_ file and update the application name\n7. Push the app to Predix Cloud:\n\n  ```shell\n  $ cf push\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findaco%2Fpredix-go-sample-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findaco%2Fpredix-go-sample-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findaco%2Fpredix-go-sample-app/lists"}