{"id":19963227,"url":"https://github.com/bilbottom/ecom-application","last_synced_at":"2025-03-01T16:44:15.570Z","repository":{"id":239294904,"uuid":"797686714","full_name":"Bilbottom/ecom-application","owner":"Bilbottom","description":"An e-commerce application built with Go.","archived":false,"fork":false,"pushed_at":"2025-01-08T21:05:51.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T07:57:33.575Z","etag":null,"topics":["go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"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/Bilbottom.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-08T10:19:02.000Z","updated_at":"2025-01-08T21:05:53.000Z","dependencies_parsed_at":"2024-11-23T14:18:22.297Z","dependency_job_id":null,"html_url":"https://github.com/Bilbottom/ecom-application","commit_stats":null,"previous_names":["bilbottom/ecom-application"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilbottom%2Fecom-application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilbottom%2Fecom-application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilbottom%2Fecom-application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilbottom%2Fecom-application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bilbottom","download_url":"https://codeload.github.com/Bilbottom/ecom-application/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241396754,"owners_count":19956405,"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":["go"],"created_at":"2024-11-13T02:15:10.881Z","updated_at":"2025-03-01T16:44:15.552Z","avatar_url":"https://github.com/Bilbottom.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![Go](https://img.shields.io/badge/Go-1.22-blue.svg)](https://go.dev/)\n[![GitHub last commit](https://img.shields.io/github/last-commit/Bilbottom/ecom-application)](https://shields.io/badges/git-hub-last-commit)\n[![Tests](https://github.com/Bilbottom/ecom-application/actions/workflows/tests.yml/badge.svg)](https://github.com/Bilbottom/ecom-application/actions/workflows/tests.yml)\n\n\u003c/div\u003e\n\n# E-commerce Application\n\nAn e-commerce application built with Go.\n\nThis is from the following YouTube tutorial:\n\n- https://youtu.be/7VLmLOiQ3ck\n\nThe corresponding repository is:\n\n- https://github.com/sikozonpc/ecom\n\n## Commands\n\nI'm on Windows (and the YouTube tutorial is not), so I can't add a Makefile. Instead, since I'm using GoLand, I am just adding run configurations.\n\nHowever, the corresponding commands still need to be documented somewhere, so here they are:\n\n```shell\n# build \u0026 run\ngo build -o bin/ecom main.go\ngo run main.go\n\n# ...alternatively, run via Docker\ndocker compose up --detach\ndocker compose down --volumes  # when you're done\n\n# test\ngo test ./...\n```\n\n## Database\n\nThe database is PostgreSQL on port `5432`. After spinning up the Docker containers, you can connect to it using the following credentials:\n\n- `DB_HOST`: `postgres`\n- `DB_PORT`: `5432`\n- `DB_USERNAME`: `postgres`\n- `DB_PASSWORD`: `postgres`\n\n### Analytics\n\nThis project uses DuckDB for analytics. Using version `\u003e=1.1` we can hook DuckDB up to the PostgreSQL instance with:\n\n```\ninstall postgres;\nload postgres;\nattach 'host=localhost port=5432 dbname=postgres user=postgres password=postgres' as backend (\n    type postgres,\n    schema 'ecom',\n    read_only\n);\nuse backend.ecom;\n\n/* Check that it works */\nshow tables;\n```\n\nCopies of the tables can easily be made into a local DuckDB instance while the app is up so that the data can be queried without needing the Docker containers running.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilbottom%2Fecom-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbilbottom%2Fecom-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilbottom%2Fecom-application/lists"}