{"id":22525569,"url":"https://github.com/letsgo-framework/letsgo-mux","last_synced_at":"2026-06-09T16:02:00.585Z","repository":{"id":57501599,"uuid":"219439348","full_name":"letsgo-framework/letsgo-mux","owner":"letsgo-framework","description":"letsgo with mux router","archived":false,"fork":false,"pushed_at":"2019-11-07T03:41:16.000Z","size":13084,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T12:04:48.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/letsgo-framework.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":"2019-11-04T07:12:20.000Z","updated_at":"2022-07-18T18:02:55.000Z","dependencies_parsed_at":"2022-09-19T09:11:00.267Z","dependency_job_id":null,"html_url":"https://github.com/letsgo-framework/letsgo-mux","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/letsgo-framework/letsgo-mux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsgo-framework%2Fletsgo-mux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsgo-framework%2Fletsgo-mux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsgo-framework%2Fletsgo-mux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsgo-framework%2Fletsgo-mux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letsgo-framework","download_url":"https://codeload.github.com/letsgo-framework/letsgo-mux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsgo-framework%2Fletsgo-mux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34114437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":[],"created_at":"2024-12-07T06:10:38.335Z","updated_at":"2026-06-09T16:02:00.559Z","avatar_url":"https://github.com/letsgo-framework.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# letsgo-mux\n[![Build Status](https://travis-ci.org/letsgo-framework/letsgo-mux.svg?branch=master)](https://travis-ci.org/letsgo-framework/letsgo-mux)\n[![Go Report Card](https://goreportcard.com/badge/github.com/letsgo-framework/letsgo-mux)](https://goreportcard.com/report/github.com/letsgo-framework/letsgo-mux)\n[![Coverage Status](https://coveralls.io/repos/github/letsgo-framework/letsgo-mux/badge.svg?branch=master)](https://coveralls.io/github/letsgo-framework/letsgo-mux?branch=master)\n[![Sourcegraph](https://sourcegraph.com/github.com/letsgo-framework/letsgo-mux/-/badge.svg)](https://sourcegraph.com/github.com/letsgo-framework/letsgo-mux?badge)\n[![Join the chat at https://gitter.im/letsgo-framework/community](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/letsgo-framework/community)\n\n## Go api starter\n### Ingredients\n\n- Go\n- [mux] ( https://github.com/gorilla/mux )\n- [mongodb] ( https://www.mongodb.com/ )\n- [mongo-go-driver] ( https://github.com/mongodb/mongo-go-driver )\n- [oauth2] ( https://github.com/golang/oauth2 )\n- [check] ( https://godoc.org/gopkg.in/check.v1 )\n- [godotenv] ( https://github.com/joho/godotenv )\n- [cors] ( github.com/gin-contrib/cors )\n***\n### Directory Structure\n\nBy default, your project's structure will look like this:\n\n- `/controllers`: contains the core code of your application.\n- `/database`: contains mongo-go-driver connector.\n- `/helpers`: contains helpers functions of your application.\n- `/middlewares`: contains middlewares of your application.\n- `/routes`: directory contains RESTful api routes of your application.\n- `/tests`: contains tests of your application.\n- `/types`: contains the types/structures of your application.\n***\n### Environment Configuration\n\nletsGo uses `godotenv` for setting environment variables. The root directory of your application will contain a `.env.example` file.\ncopy and rename it to `.env` to set your environment variables.\n\nYou need to create a `.env.testing` file from `.env.example` for running tests.\n***\n### Setting up\n\n- clone letsGo\n- change package name in `go.mod` to your package name\n- change the internal package (controllers, tests, helpers etc.) paths as per your requirement\n- setup `.env` and `.env.testing`\n- run `go mod download` to install dependencies\n\n#### OR `letsgo-cli` can be used to setup new project\n\n### install letsgo-cli\n```\ngo get github.com/letsgo-framework/letsgo-cli\n```\n\n\n### Create a new project\n\n```bash\nletsgo-cli init -importPath=\u003cimport_namespace\u003e -directory=\u003cproject_name\u003e -router=\u003crouter\u003e\n```\n\n- **letsgo-cli init -importPath=github.com -directory=myapp -router=gin**\u003cbr/\u003e\n  Generates a new project called **myapp** in your `GOPATH` inside `github.com` and installs the default plugins through the glide.\n***\n### Run : ```go run main.go```\n***\n### Build : ```go build```\n***\n### Test : ```go test tests/main_test.go```\n\n### Coverall :\n```\ngo test -v -coverpkg=./... -coverprofile=coverage.out ./...\n\ngoveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN\n```\n***\n### Authentication\n\nletsgo uses Go OAuth2 (https://godoc.org/golang.org/x/oauth2) for authentication.\n***\n\n### Deploy into Docker\n\n```\nsudo docker run --rm -v \"$PWD\":/go/src/github.com/letsgo-framework/letsgo -w /go/src/github.com/letsgo-framework/letsgo iron/go:dev go build -o letsgo\n```\n```\nsudo docker build -t sab94/letsgo .\n```\n```\nsudo docker run --rm -p 8080:8080 sab94/letsgo\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsgo-framework%2Fletsgo-mux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletsgo-framework%2Fletsgo-mux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsgo-framework%2Fletsgo-mux/lists"}