{"id":16674546,"url":"https://github.com/settermjd/small-go-url-shortener","last_synced_at":"2025-07-03T23:33:09.488Z","repository":{"id":222057505,"uuid":"756138779","full_name":"settermjd/small-go-url-shortener","owner":"settermjd","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-06T11:07:05.000Z","size":9458,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-13T03:16:17.028Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/settermjd.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":"2024-02-12T03:04:28.000Z","updated_at":"2024-03-04T23:28:05.000Z","dependencies_parsed_at":"2024-11-18T23:04:23.296Z","dependency_job_id":null,"html_url":"https://github.com/settermjd/small-go-url-shortener","commit_stats":null,"previous_names":["settermjd/small-go-url-shortener"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/settermjd/small-go-url-shortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fsmall-go-url-shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fsmall-go-url-shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fsmall-go-url-shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fsmall-go-url-shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/settermjd","download_url":"https://codeload.github.com/settermjd/small-go-url-shortener/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fsmall-go-url-shortener/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263421460,"owners_count":23464012,"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-12T12:43:30.145Z","updated_at":"2025-07-03T23:33:09.264Z","avatar_url":"https://github.com/settermjd.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Go URL Shortener\n\nThis is a small, simplistic URL shortener written in Go.\nIt doesn't have near the functionality of sites such as bit.ly.\nHowever, it does a good job of showing the essence of how a URL shortener works.\n\n## Prerequisites\n\nTo use the application, you'll need the following:\n\n- A recent version of [Go](https://go.dev/dl/). \n  1.22.0 is the current version at the time of writing.\n- [The Command Line Shell for SQLite](https://www.sqlite.org/cli.html).\n  This is required for provisioning the SQLite database during setup.\n\nTo develop the application, you'll need the following, additional, dependencies:\n\n- [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).\n  This is required to install and run the frontend tooling.\n\n## Getting started\n\nTo set up the application, clone it locally, change into the cloned project directory, and install the required Go modules, by running the following commands.\n\n```bash\ngit clone git@github.com:settermjd/small-go-url-shortener.git\ncd small-go-url-shortener\ngo mod tidy\n```\n\n## Setting up the database\n\nTo set up the database, run the following command in your terminal.\n\n```bash\nsqlite3 data/database.sqlite3 \u003c docs/database/load.sql\n```\n\nThis will provision the database, creating the (sole) table, `urls`.\nIt won't load any default data into the table, however. \nSo, you should insert some records by running the following commands, after replacing the placeholders with data of your choice.\n\n```sql\nINSERT INTO urls (original_url, shortened_url, clicks) VALUES\n(\"\u003c\u003cORIGINAL URL\u003e\u003e\", \"https://shoRtkl9187ds\", 347),\n(\"\u003c\u003cORIGINAL URL\u003e\u003e\", \"https://sh0Rtkl9187es\", 2809);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Fsmall-go-url-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsettermjd%2Fsmall-go-url-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Fsmall-go-url-shortener/lists"}