{"id":26382868,"url":"https://github.com/minikin/next-json-server","last_synced_at":"2026-05-20T19:10:55.746Z","repository":{"id":49697295,"uuid":"232070484","full_name":"minikin/next-json-server","owner":"minikin","description":"Mock Json Server","archived":false,"fork":false,"pushed_at":"2021-06-11T08:23:45.000Z","size":36685,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T14:27:31.932Z","etag":null,"topics":["json","server"],"latest_commit_sha":null,"homepage":"","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/minikin.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}},"created_at":"2020-01-06T09:48:28.000Z","updated_at":"2021-06-11T08:23:45.000Z","dependencies_parsed_at":"2022-09-24T00:00:13.232Z","dependency_job_id":null,"html_url":"https://github.com/minikin/next-json-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/minikin/next-json-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minikin%2Fnext-json-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minikin%2Fnext-json-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minikin%2Fnext-json-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minikin%2Fnext-json-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minikin","download_url":"https://codeload.github.com/minikin/next-json-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minikin%2Fnext-json-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33271640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T15:12:43.734Z","status":"ssl_error","status_checked_at":"2026-05-20T15:12:42.300Z","response_time":356,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["json","server"],"created_at":"2025-03-17T06:19:20.347Z","updated_at":"2026-05-20T19:10:55.698Z","avatar_url":"https://github.com/minikin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Json Server\n\n## Deploy to Heroku\n\n1. [Create your database](https://github.com/minikin/next-json-server/blob/master/db.json)\n\n2. Create an account on [https://heroku.com](https://heroku.com)\n\n3. Install the Heroku CLI on your computer: [https://devcenter.heroku.com/articles/heroku-cli](https://devcenter.heroku.com/articles/heroku-cli)\n\n4. Connect the Heroku CLI to your account by writing the following command in your terminal and follow the instructions on the command line:\n\n```bash\nheroku login\n```\n\n5. Then create a remote heroku project, kinda like creating a git repository on GitHub. This will create a project on Heroku with a random name. If you want to name your app you have to supply your own name like `heroku create project-name`:\n\n```bash\nheroku create my-cool-project\n```\n\n6. Push your app to **Heroku** (you will see a wall of code)\n\n```bash\ngit push heroku master\n```\n\n7. Visit your newly create app by opening it via heroku:\n\n```bash\nheroku open\n```\n\n8. For debugging if something went wrong:\n\n```bash\nheroku logs --tail\n```\n\n9. Restart app\n\n```bash\nheroku restart -a next-json-server\n```\n\n10. Add heroku remote\n\n```sh\nheroku git:remote -a thawing-inlet-61413\n```\n\n---\n\n## How it works\n\nHeroku will look for a startup-script, this is by default `npm start` so make sure you have that in your `package.json` (assuming your script is called `server.js`):\n\n```json\n \"scripts\": {\n    \"start\" : \"node server.js\"\n }\n```\n\nYou also have to make changes to the port, you can't hardcode a dev-port. But you can reference herokus port. So the code will have the following:\n\n```js\nconst port = process.env.PORT || 4000;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminikin%2Fnext-json-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminikin%2Fnext-json-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminikin%2Fnext-json-server/lists"}