js-data-express
Generate Express.js-compatible route middleware for js-data models.
To get started, visit http://js-data.io.
;;; const app = ;const store = ;const UserMapper = store;const CommentMapper = store;
// Mount queryParser and store at "/"; // Mount queryParser and store at "/api"; // Mount queryParser at "/"app;// Mount store at "/"app; // Mount queryParser at "/api"app;// Mount store at "/api"app; // Create an express Router instanceconst api = ;// Mount queryParserapi;// Mount UserMapper at "/api/user"api;// Mount UserMapper at "/api/comment"api;// Use api Router in an existing express app instanceapp;
Links
- Quick start - Get started in 5 minutes
- Guides and Tutorials - Learn how to use JSData
js-data-express
Guide - Learn how to usejs-data-express
- API Reference Docs - Explore components, methods, options, etc.
- Community & Support - Find solutions and chat with the community
- General Contributing Guide - Give back and move the project forward
License
The MIT License (MIT)
Copyright (c) 2016-2017 js-data-express project authors