{"id":20496470,"url":"https://github.com/iamgrid/nodejs-quick-rest-api","last_synced_at":"2026-05-05T04:03:26.933Z","repository":{"id":177036116,"uuid":"590598478","full_name":"iamgrid/nodejs-quick-rest-api","owner":"iamgrid","description":"Meant to be ran on localhost (with \"npm start\"), you put the object you want to get back as JSON as a property of your app object in .\\responseLibrary.js, you fetch from the endpoint like http://localhost:3001?app=yourFirstAppId\u0026key=yourPropertyKey1 and hey presto, your very own REST server.","archived":false,"fork":false,"pushed_at":"2023-01-21T16:29:30.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T12:56:35.785Z","etag":null,"topics":["express","expressjs","nodejs","rest","rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/iamgrid.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":"2023-01-18T19:23:16.000Z","updated_at":"2023-03-09T00:31:28.000Z","dependencies_parsed_at":"2023-07-10T02:31:31.759Z","dependency_job_id":null,"html_url":"https://github.com/iamgrid/nodejs-quick-rest-api","commit_stats":null,"previous_names":["iamgrid/nodejs-quick-rest-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iamgrid/nodejs-quick-rest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgrid%2Fnodejs-quick-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgrid%2Fnodejs-quick-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgrid%2Fnodejs-quick-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgrid%2Fnodejs-quick-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamgrid","download_url":"https://codeload.github.com/iamgrid/nodejs-quick-rest-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgrid%2Fnodejs-quick-rest-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32634732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["express","expressjs","nodejs","rest","rest-api"],"created_at":"2024-11-15T18:07:16.226Z","updated_at":"2026-05-05T04:03:26.924Z","avatar_url":"https://github.com/iamgrid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodejs-quick-rest-api\n\n## Introduction\nMeant to be ran on localhost (with \"npm start\"), you put the object you want to get back as JSON as a property of your app object in .\\responseLibrary.js, you fetch from the endpoint like http://localhost:3001?app=yourFirstAppId\u0026key=yourPropertyKey1 and hey presto, your very own REST server.\n\n## Installation\n1. `git clone` the repo into a folder of your choice\n2. `cd nodejs-quick-rest-api` (enter the folder the clone command created)\n3. `npm install` to install this project's required packages defined in package.json (the packages are express and nodemon)\n4. Create your responseLibrary.js file in the root folder. The contents should be something like:\n```\nconst yourFirstAppId = {\n\t\"yourPropertyKey1\": {\n\t\tare: \"you ok\",\n\t\tof: \"course, never better\"\n\t},\n\t\"yourPropertyKey2\": {\n\t\tyouForgot: \"to work\",\n\t\tthe: \"thingamabob\"\n\t}\n};\n\nconst yourSecondAppId = {\n\t\"yourPropertyKey3\": {\n\t\tniceDay: \"for\",\n\t\tfishing: \"ain't it\"\n\t}\n};\n\nmodule.exports = { yourFirstAppId, yourSecondAppId };\n```\n\n## Usage\n1. `npm start`\n2. Talk to the server while it is listening by fetching from the url `http://localhost:3001?app=yourFirstAppId\u0026key=yourPropertyKey1`\n\nThanks to the nodemon package, as you save changes to your responseLibrary.js or index.js the server will automatically restart to reflect your updates.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamgrid%2Fnodejs-quick-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamgrid%2Fnodejs-quick-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamgrid%2Fnodejs-quick-rest-api/lists"}