{"id":44364615,"url":"https://github.com/hellojebus/go-mux-jwt-boilerplate","last_synced_at":"2026-02-11T18:17:56.434Z","repository":{"id":57494930,"uuid":"135242735","full_name":"hellojebus/go-mux-jwt-boilerplate","owner":"hellojebus","description":"Golang REST API using MUX, GORM, and JWT for authentication","archived":false,"fork":false,"pushed_at":"2018-06-08T05:39:52.000Z","size":3460,"stargazers_count":47,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-19T05:34:45.976Z","etag":null,"topics":["boilerplate","crud","go-jwt","golang","golang-application","gorilla-mux","gorm-orm","jwt","mux","mysql","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellojebus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-29T04:53:16.000Z","updated_at":"2024-06-11T19:25:24.000Z","dependencies_parsed_at":"2022-08-28T15:10:44.829Z","dependency_job_id":null,"html_url":"https://github.com/hellojebus/go-mux-jwt-boilerplate","commit_stats":null,"previous_names":["hellojebus/go-envoz-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hellojebus/go-mux-jwt-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojebus%2Fgo-mux-jwt-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojebus%2Fgo-mux-jwt-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojebus%2Fgo-mux-jwt-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojebus%2Fgo-mux-jwt-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellojebus","download_url":"https://codeload.github.com/hellojebus/go-mux-jwt-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojebus%2Fgo-mux-jwt-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29340756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T16:14:43.024Z","status":"ssl_error","status_checked_at":"2026-02-11T16:14:15.258Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["boilerplate","crud","go-jwt","golang","golang-application","gorilla-mux","gorm-orm","jwt","mux","mysql","rest-api"],"created_at":"2026-02-11T18:17:55.630Z","updated_at":"2026-02-11T18:17:56.427Z","avatar_url":"https://github.com/hellojebus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoLang Mux, Gorm, JWT REST API Boilerplate \n\nThe purpose of this web app is for me to learn Go REST API Development using Mux (router), Gorm (ORM), JSON Web Tokens (JWT), and Golang development in general. The application is optimized for Heroku deployment using the Go Build Kit and Godep for dependency management.\n\n**This is for educational purposes only and probably unsuitable for production** \n\n## What's included\n\nBasic CRUD routes for user management  \n\n* Show Users `GET /users`\n* Show User `GET /users/{userId}`\n* Create User `POST /users`\n* User Login `POST /users/login`\n* Delete User `DELETE /users/{userId}`\n* Update User `PUT /users/{userId}` * Note only the user can update their own name\n\nSeveral routes are protected and require JWT tokens, which can be generated using the login route.\nYou will need to create a user by sending a post request to the createUser route.\n\n## Configuration\n\nMake sure to copy `.env.sample` to `.env` and update all fields (DB fields are important!)\n\n**Please note that this is using the MySQL driver, if you prefer to use another driver, update `db.go` accordingly**\n\nGorm is setup to automigrate the Users table, so it should be plug and play.\n\n## Installation\n\nMake sure to have all required external deps. Look at Godeps config file to view them all.\n\n**Preferred Method, Live Reloading (optional):**\n\nInstall Gin `go get github.com/codegangsta/gin`\n\nThen run: `gin run main.go`\n\n**Otherwise:**\n\nTo run using Go: `go run *.go`\n\nTo view application in browser: `localhost:3000 (gin run) or locahost:YOUR_PORT_ENV (go run)`\n  \n## Todos\n \n[] Detach userHandlers DB functions from http for testing purposes\u003cbr\u003e\n[] Add User Role to illustrate how relationships work with Gorm \u003cbr\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellojebus%2Fgo-mux-jwt-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellojebus%2Fgo-mux-jwt-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellojebus%2Fgo-mux-jwt-boilerplate/lists"}