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
1
vote
2 answers

StrongLoop Relations

Im using strongLoop for make a simple explorer of folders and documents. The case is very simple: one folder could contains many documents and folder. So in strongloop y define this model hierarchy: -Object |-----Folder |-----Document So, in…
1
vote
1 answer

How to set up Loopback Angular SDK on separate server from Loopback Backend

Title says it all. Loopback is on a server, and I'm building a front-end on a different server. The docs for Loopback Angular SDK specifically say you have to link it to the loopback server.js. That is not available to me. What is available to me is…
Lschpmn
  • 13
  • 1
  • 3
1
vote
5 answers

Issues installing StrongLoop LoopBack in Ubuntu 14.04 LTS

I am trying to install StrongLoop LoopBack in my Ubuntu 14.04 LTS. The installation through console always keeps on doing this. This is my output from console. Is everything going right here? Help me solve it. I couldn't complete the strongloop…
1
vote
3 answers

How to create a NodeJS + LoopBack Application using WebStorm?

I am using WebStorm v 9.0.3. I would like to create a Strongloop/Loopback Application + NodeJS Application. Is there a way to create it directly through WebStorm IDE or should we manually do it using commandline. Currently I can see only NodeJS…
1
vote
1 answer

Loopback Model Relations not saving properly?

PATIENT MODEL { "name": "Patient", "base": "PersistedModel", "idInjection": true, "properties": { "createdDate": { "type": "date" } }, "validations": [], "relations": { "profile": { "type": "hasOne", …
1
vote
1 answer

Strongloop Oracle connecting via script

I'm currently testing Loopback and using the Arc interface. I can connect to my oracle database and create models from the tables all served up in explorer. (all good). but now I seem to be struggling when wanting to write some custom code and call…
Madmartigan
  • 260
  • 3
  • 11
1
vote
0 answers

How to manage multilingual content in express app

I'm building an express app which have to manage translation for some fields of my models. (I'm using loopBackjs framework to be exact) Example: a product needs to have its title and description directly editable in the backend form in multiple…
1
vote
1 answer

How to add more remoteMethod to Built-in Models (say User) in Loopback

How to add more remoteMethod to Built-in Models (say User) in Loopback? I have created a common/models/user.js and added the following code var loopback = require('loopback'); var User = loopback.User; User.signup = function(userData, callback){ …
Raj Lalwani
  • 391
  • 1
  • 6
  • 14
1
vote
1 answer

Error: Cyclic dependency: "User" with loopback passport example

I'm trying to work with Strongloop loopback and loopback-component-passport but can't quite figure out how to get the relationships between the built in User model, and the loopback-component-passport provided models, to work It looks like the…
stujo
  • 2,089
  • 24
  • 29
1
vote
2 answers

How to expose User.id in JSON response from Loopback

I have a simple use case that for the life of me I can't seem to figure out: I have a model "Employee" that is based on the Loopback "User" model. My assumption is that the "id" of "Employee" would be the same as "User". For the purpose of passing…
TWright
  • 1,853
  • 18
  • 25
1
vote
1 answer

Using Non-Rest Calls with Loopback (Strongloop)

We're using Loopback for our REST apis and would like to implement some standard Node Express-like calls through the same instance that do not get automatically routed through the Loopback framework. How can we add a new, separate route without…
A2MetalCore
  • 1,621
  • 4
  • 25
  • 49
1
vote
1 answer

LoopBack - splitting model-config.json

Having many models would like for maintenance purposes to split the model-config.json. How to do this?
1
vote
1 answer

StrongLoop Arc Composer Doesn't Discover Models From Different Schema Than DBO

I have a relational database on MSSQL, I've created this one on a different schema (titan) than DBO. When I try to retrieve the models from my database, the composer of strongloop arc only shows those tables that are currently saved on DBO schema…
cabolanoz
  • 304
  • 1
  • 9
1
vote
0 answers

Populate hasAndBelongsToMany in strongloop initialization

I'm trying to poulate my Strongloop models and relations during startup. I've created a js-script in server/boot/ but how do I initialize a hasAndBelongsToMany relation? This is what my current setup code looks like (some parts omitted for…
4ZM
  • 1,463
  • 1
  • 11
  • 21
1
vote
2 answers

how do i rename file using loopback storage service

I am stuck how to rename the uploaded file to server. don't know how to rename the file and send that url further. Using [loopback-storage-service] Do i make changes in container model? Help is appreciated.
UMESH0492
  • 1,701
  • 18
  • 31