{"id":21239226,"url":"https://github.com/tinacious/static-server","last_synced_at":"2025-03-15T03:40:31.937Z","repository":{"id":257167980,"uuid":"857474192","full_name":"tinacious/static-server","owner":"tinacious","description":"🚀 A tiny command line app with no external dependencies for serving any directory as a static server","archived":false,"fork":false,"pushed_at":"2024-09-14T19:50:02.000Z","size":4,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T19:22:47.027Z","etag":null,"topics":["cli","cli-app","go","golang","server","static-server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinacious.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":"2024-09-14T18:52:22.000Z","updated_at":"2024-09-14T20:11:25.000Z","dependencies_parsed_at":"2024-09-15T05:41:43.697Z","dependency_job_id":null,"html_url":"https://github.com/tinacious/static-server","commit_stats":null,"previous_names":["tinacious/static-server"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fstatic-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fstatic-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fstatic-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fstatic-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinacious","download_url":"https://codeload.github.com/tinacious/static-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243680974,"owners_count":20330154,"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":["cli","cli-app","go","golang","server","static-server"],"created_at":"2024-11-21T00:42:31.176Z","updated_at":"2025-03-15T03:40:31.912Z","avatar_url":"https://github.com/tinacious.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# static-server\n\n`static-server` is a simple command line app written in Go that serves your current working directory as a static server.\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Custom port](#custom-port)\n- [Uninstall](#uninstall)\n\n\n## Installation\n\nInstall the CLI tool:\n\n```sh\ngo install github.com/tinacious/static-server@latest\n```\n\n## Usage\n\nRun the `static-server` command in any directory you'd like to serve as a web server.\n\nIf you have the following directory `test`:\n\n```\ntest\n├── index.html\n└── style.css\n```\n\nYou can do:\n\n```sh\ncd test\nstatic-server\n```\n\nThis should serve the contents on a random port. \n\n\n### Custom port\n\nYou can configure the port by passing it as an environment variable. For example, to run on port 1337 run:\n\n```sh\nPORT=1337 static-server\n```\n\n\n## Uninstall\n\nOpen `~/go/bin` and delete `static-server`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinacious%2Fstatic-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinacious%2Fstatic-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinacious%2Fstatic-server/lists"}