{"id":19853719,"url":"https://github.com/umasahni/render-json-server","last_synced_at":"2025-05-02T01:30:22.530Z","repository":{"id":152818419,"uuid":"604805630","full_name":"UmaSahni/render-json-server","owner":"UmaSahni","description":"Learn to deploy your json server on render.com from this repository","archived":false,"fork":false,"pushed_at":"2023-09-24T11:18:05.000Z","size":68,"stargazers_count":124,"open_issues_count":0,"forks_count":24,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T20:24:55.441Z","etag":null,"topics":["api","deployment","jsonserver","render"],"latest_commit_sha":null,"homepage":"https://youtu.be/wN0n2gj0z9o","language":"JavaScript","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/UmaSahni.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,"governance":null}},"created_at":"2023-02-21T20:36:31.000Z","updated_at":"2025-02-28T14:59:25.000Z","dependencies_parsed_at":"2023-09-24T13:03:01.145Z","dependency_job_id":null,"html_url":"https://github.com/UmaSahni/render-json-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UmaSahni%2Frender-json-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UmaSahni%2Frender-json-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UmaSahni%2Frender-json-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UmaSahni%2Frender-json-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UmaSahni","download_url":"https://codeload.github.com/UmaSahni/render-json-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251969226,"owners_count":21673178,"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":["api","deployment","jsonserver","render"],"created_at":"2024-11-12T14:07:29.165Z","updated_at":"2025-05-02T01:30:22.167Z","avatar_url":"https://github.com/UmaSahni.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# render-json-server\n\n## Watch This Video\n[![Click to watch the video](http://img.youtube.com/vi/wN0n2gj0z9o/0.jpg)](http://www.youtube.com/watch?v=wN0n2gj0z9o)\n\n\nHello everyone in this video you will learn to deploy your db.json file on **render.com** step by step.\n\n**Step 1** -   Create git repository\n\n**Step 2** - Clone it on your device\n\n**Step 3** - Add package.json by using this command `npm init -y`\n\n**Step 4** - Install some dependency by using this command `npm i json-server cors json-serve` and add ` \"start\": \"node index.js\" ` in script \n\n**Step 6** - Create index.js file copy the code from my GitHub repository\n\n```javaScript\nconst jsonServer = require(\"json-server\"); // importing json-server library\nconst server = jsonServer.create();\nconst router = jsonServer.router(\"db.json\");\nconst middlewares = jsonServer.defaults();\nconst port = process.env.PORT || 8080; //  chose port from here like 8080, 3001\n\nserver.use(middlewares);\nserver.use(router);\n\nserver.listen(port);\n\n```\n\n**Step 7** - Add db.json and add .gitignore file\n\n\nAfter all this steps are completed use this command to push the code in your Github account.\n\n`git add .`\n\n`git commit -m \"Your message\"`\n\n`git push origin main`\n\n\nIf you find this video helpful please subscribe to my channel and share this with your friends. If you have any queries ask in the comment section below I will be happy to answer you all.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumasahni%2Frender-json-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumasahni%2Frender-json-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumasahni%2Frender-json-server/lists"}