{"id":21581553,"url":"https://github.com/thoughtscript/go_db_2023","last_synced_at":"2025-07-16T22:30:28.996Z","repository":{"id":188828796,"uuid":"596602380","full_name":"Thoughtscript/go_db_2023","owner":"Thoughtscript","description":"Experiments with GoLang serverside","archived":false,"fork":false,"pushed_at":"2024-05-07T18:44:34.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-07T19:44:34.214Z","etag":null,"topics":["golang","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Thoughtscript.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}},"created_at":"2023-02-02T14:46:08.000Z","updated_at":"2024-05-07T18:44:38.000Z","dependencies_parsed_at":"2023-08-17T04:00:53.938Z","dependency_job_id":"e534261c-49bc-46f8-80b4-2c3c05704b85","html_url":"https://github.com/Thoughtscript/go_db_2023","commit_stats":null,"previous_names":["thoughtscript/go_db_2023"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fgo_db_2023","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fgo_db_2023/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fgo_db_2023/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fgo_db_2023/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thoughtscript","download_url":"https://codeload.github.com/Thoughtscript/go_db_2023/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226171933,"owners_count":17584910,"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":["golang","sqlite3"],"created_at":"2024-11-24T14:12:54.251Z","updated_at":"2024-11-24T14:12:54.814Z","avatar_url":"https://github.com/Thoughtscript.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GO_DB_2023\n\n[![](https://img.shields.io/badge/sqlitebroswer-3.12.2-white.svg)](https://sqlitebrowser.org/) \n[![](https://img.shields.io/badge/Go-1.19.3-blue.svg)](https://golang.org/pkg/)\n\nExperiments with GoLang: \n\n1. Database + Domain\n2. Database singleton client connection\n3. Worker Pooling\n4. Client-Server\n5. SSL\n6. Web server go routines\n\n## Installation, Setup, and Use\n\nGo, etc.\n\nGCC (and make):\n\n1. Install via [MSYS2](https://www.msys2.org/) on Windows. **MSYS2** still seems to be the best Windows Linux tools distribution around (2022). Will install a Linux terminal and add itself to **Environment Variables** automatically. Will come bundled with `pacman`.\n2. I'd recommend the [toolchain](https://packages.msys2.org/package/mingw-w64-x86_64-gcc?repo=mingw64): `pacman -S mingw-w64-x86_64-toolchain`\n3. You'll still need to add the `gcc` dir to the **Environment Variables** (`C:\\msys64\\mingw64\\bin`) `PATH`.\n\n\u003e If you run into pacman PGP key trust errors per [this](https://github.com/msys2/MINGW-packages/issues/240):\n\n```BASH\npacman-key --init\npacman-key --populate msys2\npacman-key --refresh-keys\n```\n\nThink the code repositories rotate keys every 3 months or so. Make sure to update those!\n\nExecute the following commands to grab all the `Go` dependencies manually:\n\n1. `go clean \u0026\u0026 go clean -modcache`\n1. `go get github.com/gofrs/uuid`\n\nFor a valid self-signed SSL:\n\n1. `openssl genrsa -out key.pem 2048`\n1. `openssl req -new -sha256 -key key.pem -out csr.csr`\n1. `openssl req -x509 -sha256 -days 365 -key key.pem -in csr.csr -out certificate.pem`\n\nNavigate to [./goserver](./goserver):\n\n1. `go run httpsServer.go`\n\nYou should see:\n\n```BASH\n=================== POLLING EVERY 5s ===================\n=================== POLLING EVERY 5s ===================\n=================== POLLING EVERY 5s ===================\n2023/02/02 16:55:38 http: TLS handshake error from [::1]:60797: remote error: tls: unknown certificate\n2023/02/02 16:55:40 http: TLS handshake error from [::1]:60802: remote error: tls: unknown certificate\n=================== POLLING EVERY 5s ===================\n=================== POLLING EVERY 5s ===================\n=================== POLLING EVERY 5s ===================\n=================== POLLING EVERY 5s ===================\n```\n\n## Views and API Endpoints\n\n1. https://localhost/public/\n2. https://localhost/public/queryworker.html\n3. https://localhost/public/querystatus.html\n4. https://localhost/public/querystatuses.html\n5. https://localhost/public/addworker.html\n6. https://localhost/public/stopworker.html\n7. https://localhost/api/examples\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Fgo_db_2023","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtscript%2Fgo_db_2023","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Fgo_db_2023/lists"}