{"id":19824803,"url":"https://github.com/stephangeorg/osrm-express","last_synced_at":"2025-07-16T12:33:04.187Z","repository":{"id":75414538,"uuid":"308599423","full_name":"StephanGeorg/osrm-express","owner":"StephanGeorg","description":"Lightweight express server for serving osrm instances.","archived":false,"fork":false,"pushed_at":"2021-06-18T15:15:39.000Z","size":213,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T08:51:21.821Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StephanGeorg.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-30T10:39:01.000Z","updated_at":"2023-12-07T20:46:01.000Z","dependencies_parsed_at":"2023-06-06T10:31:26.700Z","dependency_job_id":null,"html_url":"https://github.com/StephanGeorg/osrm-express","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"82018bef7e0a49d3c187f42118cbfff6375cff33"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanGeorg%2Fosrm-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanGeorg%2Fosrm-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanGeorg%2Fosrm-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanGeorg%2Fosrm-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StephanGeorg","download_url":"https://codeload.github.com/StephanGeorg/osrm-express/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241181146,"owners_count":19923376,"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-11-12T11:06:05.663Z","updated_at":"2025-02-28T16:25:47.477Z","avatar_url":"https://github.com/StephanGeorg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express-REST-API\n\n## Features\n\n  + Express based server\n  + Validation with [celebrate](https://github.com/arb/celebrate)/[joi](https://github.com/hapijs/joi)\n  + Logging with [winston](https://github.com/winstonjs/winston) and [morgan](https://github.com/expressjs/morgan)\n  + Human readable errors with [winston](https://github.com/winstonjs/winston) cli logger format and [pretty-error](https://github.com/AriaMinaei/pretty-error)\n  + Testing with [mocha](https://mochajs.org/) and [supertest](https://github.com/visionmedia/supertest)\n  + Coverage with [istanbul](https://istanbul.js.org/) and [nyc](https://github.com/istanbuljs/nyc)\n  + [Mongo](https://mongodb.github.io/node-mongodb-native/) and [Postgres](https://node-postgres.com/) data layers with connection pooling\n  + Schema validation via [Joi](https://hapi.dev/family/joi)\n  + Metrics submission [StatsD](https://github.com/statsd/statsd) via [hot-shots](https://github.com/brightcove/hot-shots)\n  + Serving statuses with [HTTPStatus](https://github.com/adaltas/node-http-status)\n\n## TODO\n\n  - ✅ Implement [ExtendableErrors](https://github.com/EQuimper/nodejs-api-boilerplate/blob/master/src/services/error.js)\n  - Implement Boom\n\n\n### Error logging\n\nErrors will be logged as follows:\n\n```\nerror:   ┏ _users.default.getUsers is not a function (500): GET /api/users/list ::1 +2s\nerror:   ┗ [1] { task: 'Controller/listUsers', context: {}, environment: 'development' }\nerror:   ┏ _users.default.getUsers is not a function   TypeError: _users.default.getUsers is not a function\n\n  - users.js:8 Object.listUsers\n    /Users/stephan/Sites/Boilerplates/Express-REST-API/src/services/users.js:8:18\n\n  - users.js:32 _callee$\n    /Users/stephan/Sites/Boilerplates/Express-REST-API/src/controllers/users.js:32:40\n\n  - runtime.js:45 tryCatch\n    [Express-REST-API]/[regenerator-runtime]/runtime.js:45:40\n\n  - runtime.js:271 Generator.invoke [as _invoke]\n    [Express-REST-API]/[regenerator-runtime]/runtime.js:271:22\n\n  - runtime.js:97 Generator.prototype.(anonymous function) [as next]\n    [Express-REST-API]/[regenerator-runtime]/runtime.js:97:21\n\n  - users.js:32 asyncGeneratorStep\n    /Users/stephan/Sites/Boilerplates/Express-REST-API/src/controllers/users.js:32:103\n\n  - users.js:34 _next\n    /Users/stephan/Sites/Boilerplates/Express-REST-API/src/controllers/users.js:34:194\n\n  - users.js:34\n    /Users/stephan/Sites/Boilerplates/Express-REST-API/src/controllers/users.js:34:364\n\n  - new Promise\n\n  - users.js:34 Object.\u003canonymous\u003e\n    /Users/stephan/Sites/Boilerplates/Express-REST-API/src/controllers/users.js:34:97\n\n +50ms\nerror:   ┗ [1] { environment: 'development' }\ninfo:    ┏ ::1 - - [09/Jan/2020:09:27:45 +0000] \"GET /api/users/get/1 HTTP/1.1\" 500 29 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36\"\n +5ms\ninfo:    ┗ [1] { environment: 'development' }\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephangeorg%2Fosrm-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephangeorg%2Fosrm-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephangeorg%2Fosrm-express/lists"}