{"id":16687655,"url":"https://github.com/pei0804/goa-spa-sample","last_synced_at":"2026-04-21T22:34:54.159Z","repository":{"id":139120969,"uuid":"100845641","full_name":"pei0804/goa-spa-sample","owner":"pei0804","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-24T17:15:44.000Z","size":3614,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-02T03:40:19.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/pei0804.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-20T07:30:19.000Z","updated_at":"2017-08-20T09:16:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"b073aba7-53a6-40f7-a306-1bdec62fe61d","html_url":"https://github.com/pei0804/goa-spa-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pei0804/goa-spa-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pei0804%2Fgoa-spa-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pei0804%2Fgoa-spa-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pei0804%2Fgoa-spa-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pei0804%2Fgoa-spa-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pei0804","download_url":"https://codeload.github.com/pei0804/goa-spa-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pei0804%2Fgoa-spa-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32113219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-10-12T15:24:34.803Z","updated_at":"2026-04-21T22:34:54.138Z","avatar_url":"https://github.com/pei0804.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Files\n\nThis example shows how to build an API that serves static assets.\n\nThe file [generate.go](generate.go) contains `go generate` directives that uses `goagen` to generate\nthe necessary files. Run it with:\n\n```bash\ngo generate\n```\n\nThen compile and run the service:\n\n```bash\ngo build\n./files\n```\n\n## Resources\n\nThis example contains the following two resources.\n\n* schema\n* swagger\n\n### Schema\n\nThe `schema` resource contains a single endpoint which serves the static files contained in the `public/schema` directory. This means the directory must exist and its relative path must be `public/schema`.\n\n### Swagger\n\nThe `swagger` resource also contains a single endpoint however it leverages [https://github.com/elazarl/go-bindata-assetfs](https://github.com/elazarl/go-bindata-assetfs) to serve assets embedded within the compiled binary.\n\n* [go-bindata](https://github.com/jteeuwen/go-bindata) is\n\n    \u003e A small utility which generates Go code from any file. Useful for embedding binary data in a Go program.\n\n* [go-bindata-assetfs](https://github.com/elazarl/go-bindata-assetfs)\n\n    \u003e Serves embedded files from `jteeuwen/go-bindata` with `net/http`.\n\nUsing these packages alleviates the need for deploying the `public/swagger` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpei0804%2Fgoa-spa-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpei0804%2Fgoa-spa-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpei0804%2Fgoa-spa-sample/lists"}