Questions tagged [loopbackjs]

LoopBack is an open source Node.js framework built on top of Express.js optimized for mobile, web, and other devices. Connect to multiple data sources, write business logic in Node.js, glue on top of your existing services and data, build REST APIs and connect using JavaScript, iOS, and Android SDKs.

The LoopBack framework is a set of Node.js modules that you can use independently or together. An application interacts with data sources through the LoopBack model API, available locally within Node.js, remotely over REST, and via native client APIs for iOS, Android, and HTML5.

Using these APIs, apps can query databases, store data, upload files, send emails, create push notifications, register users, and perform other actions provided by data sources and services. Clients can call LoopBack APIs directly using Strong Remoting, a pluggable transport layer that enables you to provide backend APIs over REST, WebSockets, and other transports.

See also

2853 questions
6
votes
1 answer

Loopback Access Token To Flask

I have setup a loopback API, and I plan to use the login as such flask would make requests to loopback and loopback returns an accessToken For example login to dashboard: # Login route @app.route("/login", methods=['GET', 'POST']) def login(): …
Rekt
  • 359
  • 2
  • 18
6
votes
1 answer

Which OpenAPI client sdk for loopback4 and angular?

We are currently migrating a loopback3 application to loopback4. The migration of the server is steight forward, but migrating the angular client seems become an issue because of the "sdk". For loopback3 we used @mean-expert/loopback-sdk-builder to…
derdeka
  • 226
  • 1
  • 5
6
votes
1 answer

NodeJS How to import JS file into TypeScript

I'm new with TypeScript. I'm currently learning NodeJS Loopback 4 framework which use Typescript language. And my question is how to import some function, class which has been exported in JS file into my TS file. After search several way but it…
Quoc Van Tang
  • 1,075
  • 4
  • 15
  • 33
6
votes
0 answers

Invalid signature when verifying Keycloak JWT signed with EC512

I'm using Keycloak 4.8.0 as authentication server. I have configured a realm that issues JWT that are signed with EC512. I'm obtaining the token via the endpoint https://example.com/auth/realms/myrealm/protocol/openid-connect/token by providing…
nebulon42
  • 222
  • 3
  • 11
6
votes
3 answers

How to pass params in axios PUT request?

axios.put('http://localhost:3000/api/userDatas/findUserAddProp',{ params: { userId: "5bb8c3bd16bf1f515ce5b42f", prop: "questions", questionId: "5bb8c466cb49d8421c05eeda" } }); Server Userdatas.findUserAddProp =…
Henok Tesfaye
  • 8,287
  • 13
  • 47
  • 84
6
votes
3 answers

Loopback API connecting to MongoDB Atlas, fails

Looks like there are about 5 of these types of questions, all unanswered, maybe someone who's done it will have some time to share a solution. I've got a loopback API app running locally, and it connects fine locally to mongoDB - I've got…
j-p
  • 3,698
  • 9
  • 50
  • 93
6
votes
3 answers

how to handle client side react routing in loopback.js

I am using react with loopback. I wanted to integrate react code in loopback. if i do these 3 steps 1)middleware.json - put this "files": { "loopback#static": { "params":"$!../client" } },` 2)root.js router.get('/'); 3)front end…
Ankur Sharma
  • 415
  • 1
  • 7
  • 22
6
votes
2 answers

Extend built-in User model to support more properties and behaviors in loopback

I want a model to represent a profile in my loopback app. But, the built-in User model found in loopback only have the following properties username password realm emailVerified What is the best way to extend the built-in User model in order to…
yadda
  • 177
  • 2
  • 12
6
votes
1 answer

Loopback giving Maximum call stack size exceeded error

I have set up my Loopback project and installed other packages required to run my project. Whenever I tried to run the application with the command within the folder node . it is raising following…
Sijan Bhandari
  • 2,941
  • 3
  • 23
  • 36
6
votes
4 answers

How to limit records of relations with include-filter in loopback?

I want to query records from a specific model via REST-Api from a LoopBack-application. Also i want to include related objects via the include-filter. This works fine, but returns ALL related objects. Is it possible to limit them and also to order…
delete
  • 18,144
  • 15
  • 48
  • 79
6
votes
1 answer

Loopbackjs: Switch DB in datasource based on request origin

I need to switch the database in loopback datasource based on the request origin eg. If i make a request from xyz.domain.com I need to select xyz database for the datasource (we are using wildcard subdomain on frontend so there will be multiple…
6
votes
1 answer

loopback remote method: parameter validation

Is there a form to make loopback automatically validate input parameters in a remote method? Let's assume we have the following definition of a remote method: WebuserModel.remoteMethod('overLogin', { description: "Performs a Webuser's login…
Aleks
  • 5,674
  • 1
  • 28
  • 54
6
votes
1 answer

Unit testing Express / Loopback middleware without starting a server

Is there a way to unit test Express / Loopback middleware without actually creating a server and listening on a port? The problem I have is that creating multiple servers in my test code will introduce the problem of port conflicts.
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
6
votes
3 answers

Loopback and mocha: wait for server to finish boot scripts

Hi as of title of question I was wondering how one can check if loopback boot scripts have finished before launching tests. In a example project: https://github.com/strongloop/loopback-example-relations there is a file in the test folder that seems…
Sanandrea
  • 2,112
  • 1
  • 27
  • 45
6
votes
2 answers

insert or update(upsert) in loopback application

I developed an API using Loopback framework, in that i have to insert or update to a table. My table looks like below: userid bbid saved id(PK) 1 5 1000 1 So when next time if(bbid = 5) it should update the above row, if bbid =5 is…
Subburaj
  • 5,114
  • 10
  • 44
  • 87