{"id":25432474,"url":"https://github.com/yussan/node-serve-static","last_synced_at":"2026-04-14T06:02:43.827Z","repository":{"id":69999817,"uuid":"127085332","full_name":"yussan/node-serve-static","owner":"yussan","description":"Serve routes from static site using NodeJS","archived":false,"fork":false,"pushed_at":"2018-03-31T01:44:52.000Z","size":1789,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T16:49:44.647Z","etag":null,"topics":["angularjs","nodejs","reactjs","static-site","vuejs","web"],"latest_commit_sha":null,"homepage":"https://steemit.com/utopian-io/@yussan/node-serve-static-serve-routes-from-static-site-using-nodejs","language":"HTML","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/yussan.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":"2018-03-28T04:50:47.000Z","updated_at":"2018-06-12T21:06:37.000Z","dependencies_parsed_at":"2023-02-23T11:31:12.381Z","dependency_job_id":null,"html_url":"https://github.com/yussan/node-serve-static","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yussan/node-serve-static","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yussan%2Fnode-serve-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yussan%2Fnode-serve-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yussan%2Fnode-serve-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yussan%2Fnode-serve-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yussan","download_url":"https://codeload.github.com/yussan/node-serve-static/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yussan%2Fnode-serve-static/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265752320,"owners_count":23822943,"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":["angularjs","nodejs","reactjs","static-site","vuejs","web"],"created_at":"2025-02-17T04:50:38.265Z","updated_at":"2026-04-14T06:02:43.762Z","avatar_url":"https://github.com/yussan.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-serve-static\nServe route from static site using NodeJS.\n\n## Background Story\nMore and more websites are using static sites, especially since ReactJS, VueJS, Angular and some other libraries or frameworks are beginning to dominate the market. \n\nNot many service managers support to serve routers from static sites. Inspired by [Netlify Redirect](https://www.netlify.com/docs/redirects/), created the same system and easy to configure, this is the beginning of this project.\n\n## Before using Node-Serve-Static \n![Before](http://res.cloudinary.com/dhjkktmal/image/upload/v1522460235/github/Screen_Shot_2018-03-31_at_08.35.49.png)\n\nFailed render page, and return 404.\n\n## After using Node-Serve-Static\n![After](http://res.cloudinary.com/dhjkktmal/image/upload/v1522460315/github/Screen_Shot_2018-03-31_at_08.38.16.png)\n\nSuccess render page and return 200.\n\n## How to Use\nFirst setup dan build your static site, and make sure it's worked. back to the Node-Serve-Static, open `server.js`, and set your static site path\n```\nconst DIR_STATIC = __dirname + '/sample_site'; \n```\nYou can use booth relative or absolute directory. Run it via\n```\nyarn start\n```\nor\n```\nnpm start\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyussan%2Fnode-serve-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyussan%2Fnode-serve-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyussan%2Fnode-serve-static/lists"}