{"id":17274163,"url":"https://github.com/davidthorn/http-json-server","last_synced_at":"2025-03-26T13:26:39.994Z","repository":{"id":122657845,"uuid":"160553440","full_name":"davidthorn/http-json-server","owner":"davidthorn","description":"An express server which handles requests for json end points","archived":false,"fork":false,"pushed_at":"2018-12-06T00:32:30.000Z","size":1081,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T14:47:48.034Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/davidthorn.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-12-05T17:20:31.000Z","updated_at":"2018-12-06T00:32:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"270cfc27-cafb-4f05-8ffa-a2877f9462a9","html_url":"https://github.com/davidthorn/http-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/davidthorn%2Fhttp-json-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidthorn%2Fhttp-json-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidthorn%2Fhttp-json-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidthorn%2Fhttp-json-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidthorn","download_url":"https://codeload.github.com/davidthorn/http-json-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245661477,"owners_count":20651874,"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":[],"created_at":"2024-10-15T08:53:16.312Z","updated_at":"2025-03-26T13:26:39.974Z","avatar_url":"https://github.com/davidthorn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Http JSON Server\n\nSo this is an experiment to see how much I can advance this database over time using various techniques which I will need to experiment with.\n\nThe test is as follows:\n\nCreate 2 files, named: `people.json` and the other `towns.json` in the `db` folder.\n\nNext write one entry to each file.\n\nAn entry must contain the following properties:\n\n```javascript\n{\n    id: string\n    name: string\n}\n```\n\nThe items can be saved either as JSON within [] or simply just written to the file.\n\nThe task is to see how quickly the application can find an item with a matching id and return it.\n\nAlso the time it takes to accurately return the total number of entries in each database.\n\nDuplicate entries with the same `id` property are not permitted.\n\nThis should all be timed and all the output should be saved to the `result.log` file.\n\nThis is the first commit which means that the latest commit must test this commits version on the same machine which it is testing its latest version so as to compare results accurately.\n\nThe `result.log` must be saved in the repository.\n\nThe only dependencies permitted are `fs`, `faker` and the only programming language permitted is `javascript`.\n\nMultiple files are permitted to be saved in order to produce the results.\n\nNo code is permitted to be copied from other repositories either.\n\nAll research about algorithms and techniques must be referenced within this `README.md` so as to prove where the origin/author.\n\nNo changes to the `main.ts` are permitted apart from the `filesToWrite`property to test the number of files which should be produced.\n\nHave fun!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidthorn%2Fhttp-json-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidthorn%2Fhttp-json-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidthorn%2Fhttp-json-server/lists"}