{"id":19975201,"url":"https://github.com/gabepublic/local-simplesite-httpservers","last_synced_at":"2026-04-15T13:31:37.132Z","repository":{"id":129581730,"uuid":"522323350","full_name":"gabepublic/local-simplesite-httpservers","owner":"gabepublic","description":"Demonstrate simple http-servers for local web development","archived":false,"fork":false,"pushed_at":"2023-02-08T07:38:39.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T18:46:36.633Z","etag":null,"topics":["http-server","nodejs","python","setup","webapp","website"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabepublic.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":"2022-08-07T20:59:04.000Z","updated_at":"2023-03-24T22:26:37.000Z","dependencies_parsed_at":"2023-05-27T09:45:49.870Z","dependency_job_id":null,"html_url":"https://github.com/gabepublic/local-simplesite-httpservers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gabepublic/local-simplesite-httpservers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Flocal-simplesite-httpservers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Flocal-simplesite-httpservers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Flocal-simplesite-httpservers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Flocal-simplesite-httpservers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabepublic","download_url":"https://codeload.github.com/gabepublic/local-simplesite-httpservers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Flocal-simplesite-httpservers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31842849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T13:28:40.153Z","status":"ssl_error","status_checked_at":"2026-04-15T13:28:29.396Z","response_time":63,"last_error":"SSL_read: 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":["http-server","nodejs","python","setup","webapp","website"],"created_at":"2024-11-13T03:17:26.360Z","updated_at":"2026-04-15T13:31:37.116Z","avatar_url":"https://github.com/gabepublic.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# local-simplesite-httpservers\n\nDemonstrate various simple http-servers for local web development which\nincludes:\n\n- npm [http-server: a simple static HTTP server](https://www.npmjs.com/package/http-server)\n\n- npm [serve](https://www.npmjs.com/package/serve)\n\n- Python [http-server](https://docs.python.org/3/library/http.server.html)\n\nIn addition, we show deployment of the simple website to:\n\n- \"Render.com\"\n\nAlso, the `index.html` page contains the `Login` link that integrates\nwith AWS Cognito, as well as the `loggedin.html` has `Logout` link that\nlogout from aws cognito.\n\n## Prerequisite\n\n- [Node.js \u0026 NPM](https://digitalcompanion.gitbook.io/home/setup/node.js)\n\n- [Python](https://digitalcompanion.gitbook.io/home/setup/dev-environment/python)\n\n\n## Setup\n\n- Clone this repo\n\n- Note: the `src` folder contains a very simple web site that will be served\n  by the simple http-server\n\n\n## Serving website locally\n\n### npm http-server\n\n- Make sure `node.js` exists\n```\nnpm --version\n8.11.0\n```\n \n- Install the npm `http-server` module\n```\nnpm install http-server\n```\n\n- Run the Http server\n```\nnpm run http-server\n\n# alternative\nnpx http-server ./src -p 8000\n```\n\n- Open browser and go to `http://localhost:8000`\n\n- CTRL-C to terminate\n\n### npm serve\n\n- Make sure `node.js` exists\n```\nnpm --version\n8.11.0\n```\n \n- Install the npm `serve` module\n```\nnpm install serve\n```\n\n- Run the Http server\n```\nnpm run serve\n```\n\n- Open browser and go to `http://localhost:8000`\n\n- CTRL-C to terminate\n\n### python server\n\n- Make sure Python exists\n```\npython3 --version\nPython 3.8.10\n```\n\n- Make the script executable\n```\nchmod +x run-py-server.sh\n```\n\n- Run the Http server\n```\n./run-py-server.sh\n```\n\n\n## Deploy\n\n### [Render.com](Render.com)\n\n- Register an account with [Render.com](https://render.com/)\n\n- Render documentation for [Static Sites](https://render.com/docs/static-sites)\n\n- Deployment by linking this Github repo to Render\n\n- Note: Static sites on Render are free, with no cost at all unless the\n  traffics go above 100 GB of bandwidth per month.\n  \n- **CLEANUP** - remember to delete the website using Render web console.\n\n\n## References\n\n- [Quick and easy HTTP servers for local development](https://timnwells.medium.com/quick-and-easy-http-servers-for-local-development-7a7df5ac25ff)\n\n- [Render - Static Sites](https://render.com/docs/static-sites)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabepublic%2Flocal-simplesite-httpservers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabepublic%2Flocal-simplesite-httpservers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabepublic%2Flocal-simplesite-httpservers/lists"}