Please consider using the new 2.x project layout, see Migrating apps to version 2.0 for information on how to migrate your "models.json" into the new format. LoopBack is an open-source Node.js framework built for API developers. and configured any request-preprocessing middleware app.js) and add the following lines: // at the top SOAP driver for Node.js (A complete rewrite of node-soap) JavaScript 365 157 18 (1 issue needs help) 9 Updated Jul 13, 2023. It enables you to quickly create APIs and microservices composed from backend systems such as databases and SOAP or REST services. npm install -save your main application file (e.g. LoopBack is an award-winning, highly extensible, open-source Node.js and TypeScript framework based on Express. Make sure you are not using 2.x or newer, as 2.x changed the project layout. 893 2 11 30 Add a comment 1 Answer Sorted by: 2 Hello from the LoopBack team Doing autoupdate would be appropriate, but I'm concerned about scalability. To load and process models.json and datasources.json, you have to "boot" your LoopBack application.Īssuming you have installed loopback 2.x in your project, and you want to use the old 1.x project layout scaffolded by slc lb, here are the instructions: The only remaining issue is that when I bring up my explorer view the shell comes up but no api end points even though I have models defined in my models.json file. Ask Question Asked 5 years, 10 months ago. Edit: I added the relevant loopback modules to my package.json, replaced my express requires with loopback, manulally added a datasources.json, and models.json and it all seems to have worked. Node.js Loopback : TypeError: Cannot read property createModel of undefined.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |