{"id":20692631,"url":"https://github.com/kevingimbel/goserve","last_synced_at":"2025-03-11T01:44:27.642Z","repository":{"id":57585209,"uuid":"62821251","full_name":"KevinGimbel/goserve","owner":"KevinGimbel","description":"💻 Static File Server written in Go.","archived":false,"fork":false,"pushed_at":"2017-11-30T10:17:56.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-17T17:35:08.954Z","etag":null,"topics":["file-server","goserve","http-server","static"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KevinGimbel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-07T16:20:15.000Z","updated_at":"2017-12-04T14:25:29.000Z","dependencies_parsed_at":"2022-09-10T13:42:03.064Z","dependency_job_id":null,"html_url":"https://github.com/KevinGimbel/goserve","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinGimbel%2Fgoserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinGimbel%2Fgoserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinGimbel%2Fgoserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinGimbel%2Fgoserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KevinGimbel","download_url":"https://codeload.github.com/KevinGimbel/goserve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242956547,"owners_count":20212454,"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":["file-server","goserve","http-server","static"],"created_at":"2024-11-16T23:23:13.603Z","updated_at":"2025-03-11T01:44:27.623Z","avatar_url":"https://github.com/KevinGimbel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goserve\n\u003e Static file server written in go.\n\n[![Build Status](https://travis-ci.org/kevingimbel/goserve.svg?branch=master)](https://travis-ci.org/kevingimbel/goserve)\n\n## Installation\n\n### From archive\n\nGo to the [release page](https://github.com/kevingimbel/goserve/releases) and download a binary for your operating system.\n`goserve` is build for Windows, MacOS and Linux with [goreleaser](https://github.com/goreleaser/goreleaser).\n\n### From source\n\n1. [Install Go](https://golang.org/doc/install#install).\n2. Clone the repo `git clone https://github.com/kevingimbel/goserve.git`\n3. Run `go build goserve.go` from within the new directory.\n\nPlace the binary somewhere in your `$PATH`, e.g.\n```sh\n  $ sudo ln -s $(pwd)/goserve /usr/local/bin\n```\n\n### Usage\n\n`goserve` can be used from the command line as follows:\n\n```sh\n  $ goserve [-port \"\"] [-cors \"\"] [-verbose]\n```\nThis will serve the current directory to `localhost:8000` or the specified port. `-verbose` logs each request to Stdout.\nWith `-cors` a `Access-Control-Allow-Origin` header can be set. For local development this can be `*` to allow all connections.\n\n```sh\n  $ goserve -port 8000 -cors \"*\"\n```\n\nSee also `goserve -help`.\n\n### Test it\n\nTo test the server run `goserve` from the project directory and open [localhost:8000/example](localhost:8000/example).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevingimbel%2Fgoserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevingimbel%2Fgoserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevingimbel%2Fgoserve/lists"}