{"id":16058950,"url":"https://github.com/andyatkinson/gournay","last_synced_at":"2026-04-18T00:31:33.517Z","repository":{"id":16838718,"uuid":"19598285","full_name":"andyatkinson/gournay","owner":"andyatkinson","description":"Gournay is a URL shrinker written in Go, for me to learn Go.","archived":false,"fork":false,"pushed_at":"2015-09-20T17:26:03.000Z","size":3683,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-22T13:42:36.204Z","etag":null,"topics":["go","golang","heroku","postgres"],"latest_commit_sha":null,"homepage":"http://gournay.herokuapp.com/","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/andyatkinson.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}},"created_at":"2014-05-09T03:56:07.000Z","updated_at":"2020-04-24T18:56:12.000Z","dependencies_parsed_at":"2022-09-25T09:32:13.765Z","dependency_job_id":null,"html_url":"https://github.com/andyatkinson/gournay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andyatkinson/gournay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fgournay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fgournay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fgournay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fgournay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyatkinson","download_url":"https://codeload.github.com/andyatkinson/gournay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fgournay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31951244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["go","golang","heroku","postgres"],"created_at":"2024-10-09T03:41:11.049Z","updated_at":"2026-04-18T00:31:33.312Z","avatar_url":"https://github.com/andyatkinson.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Gournay is a URL shrinker written in Go.\n\n## Try it\n\n  [http://gournay.herokuapp.com/](http://gournay.herokuapp.com/)\n\n### building locally\n\n    go build gournay.go\n\nWhen pushing to heroku, the app is compiled. When adding new dependencies, remember to run `godep save`.\n\n### running in development\n\n    # psql\n    create database gournay_development;\n    create table entries (\n      url varchar(255),\n      hash varchar(5)\n    );\n\nLocal postgres connection string like this, for a database called `gournay_development`:\n\n    export DATABASE_URL=\"user=andy host=localhost dbname=gournay_development sslmode=disable\"\n\n    ./gournay\n    # port is 5000 by default\n\n### Heroku\n\nDetails on using the [Heroku buildpack](http://stackoverflow.com/a/16655766/126688).\n\n  * Create a heroku instance with the custom buildpack\n  * Enable the postgres addon with: `heroku addons:add heroku-postgresql`\n  * Heroku binds to a random port, can't hard-code the port. [details](http://stackoverflow.com/a/15693371/126688)\n  * connect to heroku psql and set up database: `heroku pg:psql`. Find out database name from connection string, and create the tables.\n\n### resources\n\n  * [go import path](http://blog.golang.org/organizing-go-code)\n  * http://golang.org/doc/articles/wiki/\n  * http://mmcgrana.github.io/2012/09/getting-started-with-go-on-heroku.html\n  * http://blog.zmxv.com/2011/09/go-template-examples.html\n  * https://code.google.com/p/go-wiki/wiki/SQLInterface\n  * https://github.com/mindreframer/golang-stuff/tree/master/github.com/VividCortex/go-database-sql-tutorial\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyatkinson%2Fgournay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyatkinson%2Fgournay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyatkinson%2Fgournay/lists"}