{"id":23611508,"url":"https://github.com/rawsashimi1604/go-stock-api","last_synced_at":"2025-11-06T04:30:39.322Z","repository":{"id":187083050,"uuid":"676216969","full_name":"rawsashimi1604/go-stock-api","owner":"rawsashimi1604","description":"Learning golang by creating stock api","archived":false,"fork":false,"pushed_at":"2023-08-10T12:36:42.000Z","size":9623,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T16:15:58.819Z","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/rawsashimi1604.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":"2023-08-08T17:35:25.000Z","updated_at":"2023-08-08T21:32:56.000Z","dependencies_parsed_at":"2024-06-21T05:51:25.157Z","dependency_job_id":"6b0f616b-7644-4be8-92c1-78ea15043764","html_url":"https://github.com/rawsashimi1604/go-stock-api","commit_stats":null,"previous_names":["rawsashimi1604/go-stock-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawsashimi1604%2Fgo-stock-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawsashimi1604%2Fgo-stock-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawsashimi1604%2Fgo-stock-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawsashimi1604%2Fgo-stock-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rawsashimi1604","download_url":"https://codeload.github.com/rawsashimi1604/go-stock-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239483848,"owners_count":19646424,"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-12-27T16:16:01.221Z","updated_at":"2025-02-18T13:43:21.610Z","avatar_url":"https://github.com/rawsashimi1604.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-stock-api\n\n## Connection String\n\nPlease use this connection string in your `.env` file.\n```\nPOSTGRES_URL=\"postgres://postgres:mysecretpassword@127.0.0.1:5432/stocksdb?sslmode=disable\"\n```\n\nStart a docker container and create the stocks database.\n```\ndocker pull postgres:latest\ndocker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres\ndocker exec -it some-postgres bash\nsu postgres\npsql\nCREATE DATABASE stocksdb;\n```\n\nCreate Stock table.\n```\nCREATE TABLE stock (\n    id SERIAL PRIMARY KEY,\n    name TEXT,\n    price NUMERIC,\n    company TEXT\n);\n```\n\n## Running with hot reload using Air\n1. Install air `https://github.com/cosmtrek/air`\n2. Run using cmd `air`\n3. Make sure `air` is in `PATH`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawsashimi1604%2Fgo-stock-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frawsashimi1604%2Fgo-stock-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawsashimi1604%2Fgo-stock-api/lists"}