{"id":13413470,"url":"https://github.com/catchplay/scaffold","last_synced_at":"2025-03-14T19:32:22.612Z","repository":{"id":144200331,"uuid":"161317847","full_name":"catchplay/scaffold","owner":"catchplay","description":"Generate scaffold project layout for Go.","archived":false,"fork":false,"pushed_at":"2019-01-10T04:00:20.000Z","size":23,"stargazers_count":147,"open_issues_count":2,"forks_count":28,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-22T13:32:08.575Z","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/catchplay.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-12-11T10:36:03.000Z","updated_at":"2024-02-19T20:29:46.000Z","dependencies_parsed_at":"2023-06-17T12:45:15.292Z","dependency_job_id":null,"html_url":"https://github.com/catchplay/scaffold","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catchplay%2Fscaffold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catchplay%2Fscaffold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catchplay%2Fscaffold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catchplay%2Fscaffold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catchplay","download_url":"https://codeload.github.com/catchplay/scaffold/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221498750,"owners_count":16833056,"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":[],"created_at":"2024-07-30T20:01:41.117Z","updated_at":"2024-10-26T05:30:56.493Z","avatar_url":"https://github.com/catchplay.png","language":"Go","readme":"# scaffold\n\n[![Build Status](https://travis-ci.org/catchplay/scaffold.svg)](https://travis-ci.org/catchplay/scaffold)\n[![codecov](https://codecov.io/gh/catchplay/scaffold/branch/master/graph/badge.svg)](https://codecov.io/gh/catchplay/scaffold)\n[![Go Report Card](https://goreportcard.com/badge/github.com/catchplay/scaffold)](https://goreportcard.com/report/github.com/catchplay/scaffold)\n[![GoDoc](https://godoc.org/github.com/catchplay/scaffold?status.svg)](https://godoc.org/github.com/catchplay/scaffold)\n\nScaffold generates starter Go project layout. Let you can focus on  buesiness logic implemeted. \n\n[![asciicast](https://asciinema.org/a/MA0ppdKfZSEl64cskUnqfsSiH.svg)](https://asciinema.org/a/MA0ppdKfZSEl64cskUnqfsSiH?autoplay=1\u0026speed=2)\n\nThe following is Go project layout scaffold generated:\n\n```\n├── Dockerfile\n├── Makefile\n├── README.md\n├── cmd\n│   └── main.go\n├── config\n│   ├── config.go\n│   ├── config.yml\n│   ├── database.go\n│   ├── http.go\n│   └── release.go\n├── docker-compose.yml\n├── model\n│   └── model.go\n└── web\n    ├── routes.go\n    ├── server.go\n    └── version.go\n```\n\n## Installation\n\n Download scaffold by using:\n```sh\n$ go get -u github.com/catchplay/scaffold\n```\n\n## Create a new project\n\n1. Going to your new project folder:\n```sh\n# change to project directory\n$ cd $GOPATH/src/path/to/project\n```\n\n2. Run `scaffold init` in the new project folder:\n\n```sh\n$ scaffold init\n```\n\n3. That will generate a whole new starter project files like:\n\n```\nCreate Dockerfile\nCreate README.md\nCreate cmd/main.go\nCreate config/config.go\nCreate config/database.go\nCreate config/http.go\nCreate config/release.go\nCreate docker-compose.yml\nCreate model/model.go\nCreate web/routes.go\nCreate web/server.go\nCreate web/version.go\nCreate Makefile\nCreate config/config.yml\nSuccess Created. Please excute `make up` to start service.\n\n```\n\n4. And you can run the new project by using:\n```sh\n$ make run \n```","funding_links":[],"categories":["杂项","Miscellaneous","Microsoft Office","Go","其他杂项","Project Layout"],"sub_categories":["项目布局","Project Layout","项目结构","项目结构`用于构建项目的非官方模式集。`"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatchplay%2Fscaffold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatchplay%2Fscaffold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatchplay%2Fscaffold/lists"}