{"id":16881653,"url":"https://github.com/benbjohnson/locald","last_synced_at":"2025-03-20T03:35:11.791Z","repository":{"id":7900609,"uuid":"9281038","full_name":"benbjohnson/locald","owner":"benbjohnson","description":"A simple HTTP server for serving static files out of the current directory.","archived":false,"fork":false,"pushed_at":"2013-04-07T20:54:54.000Z","size":156,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T23:56:14.492Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/benbjohnson.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":"2013-04-07T18:23:37.000Z","updated_at":"2013-10-21T22:29:35.000Z","dependencies_parsed_at":"2022-08-20T05:11:39.680Z","dependency_job_id":null,"html_url":"https://github.com/benbjohnson/locald","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Flocald","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Flocald/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Flocald/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Flocald/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benbjohnson","download_url":"https://codeload.github.com/benbjohnson/locald/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244544832,"owners_count":20469742,"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-10-13T16:04:39.579Z","updated_at":"2025-03-20T03:35:11.773Z","avatar_url":"https://github.com/benbjohnson.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"locald\n======\n\n### Overview\n\nEver need to run an HTTP server to serve static content out of a directory for testing?\nWell, me too!\nThat's what locald does.\nIn fact, that's all it does.\nEven better is that it doesn't have any dependencies outside of Go.\nOnce you build the server you end up with a nice single, statically compiled binary.\n\n\n### Getting Started\n\nTo get started, make sure you install [Go](http://golang.org/) and then build the server:\n\n```sh\n$ go build\n```\n\nNow you have a `locald` executable in your current directory! Woohoo!\nRun it like so:\n\n```sh\n$ ./locald\nlocald v0.1.0\nServing /your/current/path on http://localhost:9000\n```\n\nThe server is dead simple so there's not a lot of options.\nActually... there's just one.\nYou can specify the port using the `-p PORT` or `--port PORT` command line arguments.\nBy default it'll use port 9000.\n\n\n### Contributions\n\nUnless you can think of a way to make this server any simpler then you probably shouldn't bother submitting a pull request.\nIt's meant to be simple.\nIf you need more features then fork the code or use ~~Apache~~ Nginx.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenbjohnson%2Flocald","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenbjohnson%2Flocald","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenbjohnson%2Flocald/lists"}