{"id":18717422,"url":"https://github.com/js-data/js-data-express","last_synced_at":"2025-04-12T13:32:25.753Z","repository":{"id":57282993,"uuid":"59611434","full_name":"js-data/js-data-express","owner":"js-data","description":"Generate Express.js-compatible route middleware for JSData models.","archived":false,"fork":false,"pushed_at":"2017-09-15T16:43:44.000Z","size":556,"stargazers_count":9,"open_issues_count":5,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-25T21:43:44.125Z","etag":null,"topics":[],"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/js-data.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-24T21:56:41.000Z","updated_at":"2021-03-01T01:59:29.000Z","dependencies_parsed_at":"2022-09-04T19:11:12.503Z","dependency_job_id":null,"html_url":"https://github.com/js-data/js-data-express","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/js-data","download_url":"https://codeload.github.com/js-data/js-data-express/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223371931,"owners_count":17134705,"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-07T13:16:11.671Z","updated_at":"2024-11-07T13:16:12.541Z","avatar_url":"https://github.com/js-data.png","language":"JavaScript","readme":"\u003cimg src=\"https://raw.githubusercontent.com/js-data/js-data/master/js-data.png\" alt=\"js-data logo\" title=\"js-data\" align=\"right\" width=\"96\" height=\"96\" /\u003e\n\n# js-data-express\n\n[![Slack Status][sl_b]][sl_l]\n[![npm version][npm_b]][npm_l]\n[![Circle CI][circle_b]][circle_l]\n[![npm downloads][dn_b]][dn_l]\n[![Coverage Status][cov_b]][cov_l]\n\nGenerate Express.js-compatible route middleware for [js-data](http://www.js-data.io/) models.\n\nTo get started, visit __[http://js-data.io](http://www.js-data.io/docs/js-data-express)__.\n\n```js\nimport express from 'express';\nimport { mount, queryParser, Router } from 'js-data-express';\nimport { Container } from 'js-data';\n\nconst app = express();\nconst store = new Container();\nconst UserMapper = store.defineMapper('user');\nconst CommentMapper = store.defineMapper('comment');\n```\n\n```js\n// Mount queryParser and store at \"/\"\nmount(app, store);\n\n// Mount queryParser and store at \"/api\"\nmount(app, store, '/api');\n\n// Mount queryParser at \"/\"\napp.use(queryParser);\n// Mount store at \"/\"\napp.use(new Router(store).router);\n\n// Mount queryParser at \"/api\"\napp.use('/api' queryParser);\n// Mount store at \"/api\"\napp.use('/api', new Router(store).router);\n\n// Create an express Router instance\nconst api = express().Router();\n// Mount queryParser\napi.use(queryParser);\n// Mount UserMapper at \"/api/user\"\napi.use('/user', new Router(UserMapper).router);\n// Mount UserMapper at \"/api/comment\"\napi.use('/comment', new Router(CommentMapper).router);\n// Use api Router in an existing express app instance\napp.use('/api', api);\n```\n\n## Links\n\n* [Quick start](http://www.js-data.io/docs/home#quick-start) - Get started in 5 minutes\n* [Guides and Tutorials](http://www.js-data.io/docs/home) - Learn how to use JSData\n* [`js-data-express` Guide](http://www.js-data.io/docs/js-data-express) - Learn how to use `js-data-express`\n* [API Reference Docs](http://api.js-data.io) - Explore components, methods, options, etc.\n* [Community \u0026 Support](http://js-data.io/docs/community) - Find solutions and chat with the community\n* [General Contributing Guide](http://js-data.io/docs/contributing) - Give back and move the project forward\n  * [Contributing to js-data-express](https://github.com/js-data/js-data-express/blob/master/.github/CONTRIBUTING.md)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016-2017 js-data-express project authors\n\n* [LICENSE](https://github.com/js-data/js-data-express/blob/master/LICENSE)\n* [AUTHORS](https://github.com/js-data/js-data-express/blob/master/AUTHORS)\n* [CONTRIBUTORS](https://github.com/js-data/js-data-express/blob/master/CONTRIBUTORS)\n\n[sl_b]: http://slack.js-data.io/badge.svg\n[sl_l]: http://slack.js-data.io\n[npm_b]: https://img.shields.io/npm/v/js-data-express.svg?style=flat\n[npm_l]: https://www.npmjs.org/package/js-data-express\n[circle_b]: https://img.shields.io/circleci/project/js-data/js-data-express.svg?style=flat\n[circle_l]: https://circleci.com/gh/js-data/js-data-express\n[dn_b]: https://img.shields.io/npm/dm/js-data-express.svg?style=flat\n[dn_l]: https://www.npmjs.org/package/js-data-express\n[cov_b]: https://img.shields.io/codecov/c/github/js-data/js-data-express.svg?style=flat\n[cov_l]: https://codecov.io/github/js-data/js-data-express\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-data%2Fjs-data-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjs-data%2Fjs-data-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-data%2Fjs-data-express/lists"}