Questions tagged [strongloop]

StrongLoop is an API tier for connecting enterprise data to devices and browsers. It includes LoopBackJS, StrongOps, and StrongNode.

LoopBackJS: Open Source API Server powered by Node.js. LoopBackJS is a Node.js powered, an open source API server with built-in mobile services like push and geolocation. These services can be accessed via iOS, Android, and HTML5 SDKs with a variety of connectors to datasources including Oracle, MySQL, and MongoDB.

StrongLoop Arc: A graphical UI for the StrongLoop API platform that complements the slc command line tools for developing APIs quickly and getting them connected to data. Arc also includes tools for building, profiling and monitoring Node.js applications.

Links:

1287 questions
0
votes
2 answers

auth in strongloop with pubsub bridge and client

I have a question over how to use auth in a bridge. Here we can see the next: bridge.before('connect', function(ctx, next) { if(ctx.auth.password !== '1234') { ctx.badCredentials = true; } next(); }); On this example, I can access to ctx and check…
0
votes
2 answers

Where is Appropriate to Put AWS Keys

I'm learning about Strongloop, it's pretty good so far. Question: What is the appropriate place to put AWS keys? config.json? ..and how would I access them from my application? Thanks
KingFish
  • 8,773
  • 12
  • 53
  • 81
0
votes
1 answer

How do you import a user model with strongloop arc database discovery

The loopback application already comes equipped with a user model and CRUDs; however, I'm trying to hook an old database up to my loopback application that already contains a user model so the model discovery replies with: ValidationError: The…
Limit
  • 53
  • 2
0
votes
1 answer

Angular model not injecting rest call when trying to UPDATE

So basically I am very new to angular and node so go easy on me. I have been building a REST API for a profile site and it obviously requires updating of posts. I have GET, DELETE and CREATE working but stuck with trying to get the current post…
0
votes
1 answer

Using harmony flags with StrongLoop Loopback Arc

I'm trying out the creation of an application built on top of StrongLoop's Loopback. I prefer to use ES6 features if possible, but when using Arc to start the server, it chokes on ES6 syntax. Is there a way to configure an application to use the…
Jacob
  • 77,566
  • 24
  • 149
  • 228
0
votes
1 answer

Native SQL in StrongLoop Loopback Server

I have a situation where the model in the database does not match the model in the API. Specifically, my products' API contains contract price, which is in a separate table, and that table has price specific to each customer/product combination. …
Scot
  • 1
  • 1
0
votes
2 answers

Strongloop passport component returns "active" from loopback.getCurrentContext() empty

I have this var context = loopback.getCurrentContext(); that returns me under context.active.acccessToken the current Token used in the call (tested in the Explorer). Now, when trying to use the Passport component, I copied the code form the…
0
votes
0 answers

Loopback Custom Validation Throws Error

While using Validatable.validate() the Custom function is throwing an internal loopback error. var duplicateConnection = function(err, done, er) { Connection.find({where: {userId: this.userId, nucleusId: this.nucleusId}}, function(bug, connection)…
Akshay Singh
  • 313
  • 1
  • 5
  • 16
0
votes
1 answer

ACL on certain records instead of API URLs

I'm stuck with a scenario where a logged in user can create blog posts in a CMS like system. So he creates these posts in a backend system. When that user is on the Blog page in the admin panel in then an API request like this is…
Vivendi
  • 20,047
  • 25
  • 121
  • 196
0
votes
1 answer

ARC won't load on Firefox 38.0.5

I'm trying to load arc from the Strongloop API. But it fails to load. I've created my DB and retrieved datas from it but The arc HTML page gives me the following error: Error: [$injector:modulerr] Failed to instantiate module Arc due to:…
JSmith
  • 4,519
  • 4
  • 29
  • 45
0
votes
1 answer

Filters - nin not working with near.

I'm having an issue with the nin and near filters. Whenever I use them both to query data from my MongoDB, I get an empty set of results. Here's the code I'm using : AppUser.find({where : {years_of_experience:{neq : null} ,location: {near:…
0
votes
1 answer

Loopback: How to change the name of a model?

I have a model with name "aaa_bbb", I want to change the name to aaa-bbb, I would like to know how I can achieve that? Or can I just change the name directly in my model json file? Here is the my current model.json file. { "name": "aaa_bbb", …
user1515940
  • 161
  • 1
  • 5
0
votes
1 answer

Impose max limit in Loopback

Is there a way to set a max limit in Loopback. I imagine something like this: MyModel.paginateFind = function(filter, page, cb){ // Set max limit of 1000 if (filter.limit > 1000) filter.limit = 1000; // Set pagination filter.skip…
Geoffrey Burdett
  • 1,906
  • 1
  • 14
  • 26
0
votes
1 answer

Create a `hasmany` which has a `hasmany` with loopback

Hi is it possible to create a chained hasmany relationship like this: Customer has Sensors and Sensors has Meterings Customer -> Sensors -> Metering So that i can access Meterings over the Customer Model. For Example:…
cebor
  • 6,546
  • 4
  • 24
  • 31
0
votes
1 answer

strongloop slc env-set not possible before deploy?

Was looking at the docs to set up a few apps deployed to strong-pm but ran into a cart-before-the-horse type issue: It's not possible to set environment variables using slc ctl env-set FOO=bar... before an app is deployed and given a…
notbrain
  • 3,366
  • 2
  • 32
  • 42