{"id":26659080,"url":"https://github.com/denisecase/go-hunt-sql","last_synced_at":"2025-08-02T19:09:05.620Z","repository":{"id":97697934,"uuid":"324221727","full_name":"denisecase/go-hunt-sql","owner":"denisecase","description":"Example app to learn Go (golang)","archived":false,"fork":false,"pushed_at":"2020-12-27T18:52:12.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-02T15:22:56.862Z","etag":null,"topics":["app","go","golang","rest"],"latest_commit_sha":null,"homepage":"https://go-hunt-sql.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/denisecase.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":"2020-12-24T19:15:50.000Z","updated_at":"2024-06-19T06:37:48.282Z","dependencies_parsed_at":"2023-06-02T19:15:34.864Z","dependency_job_id":null,"html_url":"https://github.com/denisecase/go-hunt-sql","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/denisecase/go-hunt-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fgo-hunt-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fgo-hunt-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fgo-hunt-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fgo-hunt-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denisecase","download_url":"https://codeload.github.com/denisecase/go-hunt-sql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fgo-hunt-sql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268439592,"owners_count":24250671,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["app","go","golang","rest"],"created_at":"2025-03-25T10:17:46.313Z","updated_at":"2025-08-02T19:09:05.595Z","avatar_url":"https://github.com/denisecase.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Hunt (with relational db)\n\n\u003e Go with the [Iris framework](https://github.com/kataras/iris)\n\n## Links\n\n- [Project Source]()\n- []()\n\n## Stack\n\n- Go - programming language, also referrred to as golang\n- Gorilla Mux - HTTP routing and URL matcher\n- JWT - JSON web tokens for authentication \u0026 authorization\n- [GORM](https://gorm.io/) - Golang object-relational mapper layer (facilitates changing datastore)\n- Postgres - relational datastore for production\n- SQLite3 - relational datastore for development\n- MinGW (optional) - gcc for Windows (needed for SQLite3 on Windows)\n\n## Prerequisites\n\n- Install golang, postgresql, and mingw (for SQLite3)\n\n```Powershell\nchoco install golang -y\nchoco install postgresql -y\nchoco install mingw -y\n```\n\nDefault $GOPATH is C:\\Go.\n\nOptional: Periodically run `choco upgrade all -y` to keep packages current.\n\n## Common Go Commands\n\n```\ngo                     // list options\ngo version\ngo help\ngo fmt\ngo mod tidy             // clean up unneeded dependencies\ngo get -u -t ./...      // update all versions\ngo get \"html/template\"  // get a specific package\n```\n\n## Initialize Project (go mod init)\n\nFrom within this project folder assign a globally unique name to your project \n(use your username and repo name in the command below):\n\n```Powershell\ngo mod init github.com/denisecase/go-hunt-sql\n```\n\nThis will create an editiable go.mod file (lists dependencies like package.json) \nand a autogenerated go.sum file (lists checksums) \nin the root folder of the project repo. \n\n## Build Project\n\n```Powershell\ngofmt -s -w .\ngo build\n```\n\n## Run Project (Includes Build)\n\n```Powershell\ngo run app.go\n```\n\nIf it asks about running autofix, select Y.\n\nIf Windows asks about allowing access, click Private / unclick Public.\n\nView at \u003clocalhost:5000\u003e\n\n## Reference\n\n- [Form Validation and Processing in Go](https://www.alexedwards.net/blog/form-validation-and-processing)\n- [CRUD RESTful API with Go, GORM, JWT, Postgres, Mysql, and Testing by Victor Steven](https://levelup.gitconnected.com/crud-restful-api-with-go-gorm-jwt-postgres-mysql-and-testing-460a85ab7121)\n    - [repo](https://github.com/victorsteven/Go-JWT-Postgres-Mysql-Restful-API)\n    - [Gin backend](https://github.com/victorsteven/Forum-App-Go-Backend)\n    - [Gin frontend (React)](https://github.com/victorsteven/Forum-App-React-Frontend)\n\n\n## Learn Go\n\n- [Golang.org/doc](https://golang.org/doc/)\n- [BOOK: Introducing Go: Build Reliable, Scalable Programs 1st Edition by Caleb Doxsey ](https://www.amazon.com/Introducing-Go-Reliable-Scalable-Programs/dp/1491941952)\n- [BOOK: Go Programming Language by Donovan and Kernighan](https://www.gopl.io/)\n- [RESOURCES: Idomatic Go by Damian Gryski](https://medium.com/@dgryski/idiomatic-go-resources-966535376dba)\n  - [Effective Go](https://golang.org/doc/effective_go.html)\n  - [Go by Example](https://gobyexample.com/)\n- [Go Advice](https://github.com/cristaloleg/go-advice)\n- [Search for packages](https://pkg.go.dev/)\n- [Create projects independent of $GOPATH using Go Modules](https://medium.com/mindorks/create-projects-independent-of-gopath-using-go-modules-802260cdfb51)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenisecase%2Fgo-hunt-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenisecase%2Fgo-hunt-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenisecase%2Fgo-hunt-sql/lists"}