{"id":21100745,"url":"https://github.com/letsgo-framework/letsgo","last_synced_at":"2025-07-04T19:05:46.634Z","repository":{"id":46557116,"uuid":"178329913","full_name":"letsgo-framework/letsgo","owner":"letsgo-framework","description":"A go to framework for RESTful API. Docs :","archived":false,"fork":false,"pushed_at":"2019-11-07T16:17:24.000Z","size":15347,"stargazers_count":12,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T17:40:27.865Z","etag":null,"topics":["letsgo","letsgo-framework","mongo"],"latest_commit_sha":null,"homepage":"https://letsgo-framework.github.io/","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-03-29T04:02:17.000Z","updated_at":"2025-02-27T00:42:00.000Z","dependencies_parsed_at":"2022-08-27T12:40:59.584Z","dependency_job_id":null,"html_url":"https://github.com/letsgo-framework/letsgo","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/letsgo-framework/letsgo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsgo-framework%2Fletsgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsgo-framework%2Fletsgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsgo-framework%2Fletsgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsgo-framework%2Fletsgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letsgo-framework","download_url":"https://codeload.github.com/letsgo-framework/letsgo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsgo-framework%2Fletsgo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263603875,"owners_count":23487212,"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":["letsgo","letsgo-framework","mongo"],"created_at":"2024-11-19T23:28:46.077Z","updated_at":"2025-07-04T19:05:46.614Z","avatar_url":"https://github.com/letsgo-framework.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# letsgo\n[![Build Status](https://travis-ci.org/letsgo-framework/letsgo.svg?branch=master)](https://travis-ci.org/letsgo-framework/letsgo)\n[![Go Report Card](https://goreportcard.com/badge/github.com/letsgo-framework/letsgo)](https://goreportcard.com/report/github.com/letsgo-framework/letsgo)\n[![Coverage Status](https://coveralls.io/repos/github/letsgo-framework/letsgo/badge.svg?branch=master)](https://coveralls.io/github/letsgo-framework/letsgo?branch=master)\n[![Sourcegraph](https://sourcegraph.com/github.com/letsgo-framework/letsgo/-/badge.svg)](https://sourcegraph.com/github.com/letsgo-framework/letsgo?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- [gin] ( https://github.com/gin-gonic/gin )\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- [go-oauth2/gin-server] ( github.com/go-oauth2/gin-server )\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 \u003cimport_namespace\u003e \u003cproject_name\u003e\n```\n\n- **letsgo-cli init github.com myapp**\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\n# Thank You\n[![https://www.jetbrains.com/?from=letsgo](https://user-images.githubusercontent.com/15252513/68403814-8f147100-01a3-11ea-9dbc-f51d36de3ef3.png)](https://www.jetbrains.com/?from=letsgo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsgo-framework%2Fletsgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletsgo-framework%2Fletsgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsgo-framework%2Fletsgo/lists"}