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
3 answers

Connect existing MySql table with Strongloop

I am trying to create an REST API which should connect to an existing table in mysql database and return the data with respective to the parameter we send. Actually nodejs and strongloop is new to me, this is first time am working with them. I have…
vamsi
  • 1,488
  • 3
  • 28
  • 66
0
votes
2 answers

Huge memory use that only occurs on deployment

I am running a strongloop API on Heroku, and have had no issues till I made a few minor changes and now I get massive memory use problems, such that the application crashes: 2015-04-20T09:48:02.414727+00:00 heroku[web.1]: Process running…
Anselan
  • 396
  • 3
  • 13
0
votes
1 answer

Add the current user before store a model strongloop

I recently start with Strongloop framework, I made a simple model { "name": "income", "plural": "incomes", "base": "PersistedModel", "idInjection": true, "properties": { "description": { "type": "string", "required": true …
rkmax
  • 17,633
  • 23
  • 91
  • 176
0
votes
1 answer

Using custom middlware in Loopback (Strongloop)

I am learning how to use custom middlewares properly by following this example here I placed the datetime.js file in my server/middleware folder and try to use it in my server.js (according to the documentation on Middlware here): var datetime =…
TonyW
  • 18,375
  • 42
  • 110
  • 183
0
votes
0 answers

LoopBack Android SDK Login Error

I am currently using Strongloop Android SDK attempting to do a basic userlogin on my local machine. When I attempt to connect to localhost at 10.0.2.2:3000/api i get the error: org.apache.http.conn.HttpHostConnectException: Connection to…
John Park
  • 290
  • 2
  • 8
  • 25
0
votes
1 answer

StrongLoop and LoopBack: what is the difference between "$ slc run" and "$ slc start"?

I follow "Getting started with LoopBack" tutorial (http://docs.strongloop.com/display/public/LB/Getting+started+with+LoopBack). And in the first step of the tutorial they start the app with $ slc run and on other steps they start the app with $ slc…
Green
  • 28,742
  • 61
  • 158
  • 247
0
votes
2 answers

Strongloop : loopback beforeCreate not called

I have a model called question on which i defined beforeCreate and beforeUpdate methods to set createdAt and updatedAt timestamps.But it seems never called when i use the api explorer to create new Questions. Here is my question.json: { "name":…
Master Mind
  • 3,014
  • 4
  • 32
  • 63
0
votes
1 answer

Accessing third-party login profile from a role in loopback

I'm building an application in which I only allow users to log in using OAuth 2 via a third party service (e.g. Twitter, Facebook, etc). I'm also defining a custom role using Role.registerResolver and ACLs to enable groups of users to gain…
Matt Hamann
  • 1,488
  • 12
  • 24
0
votes
0 answers

Model's Id not recognized when "idInjection": false and some property has "id": true

I have made a POC Android App to test this behaviour. Looks like Loopback's Android SDK is not recognizing the Id field of a model in some operations. I have written a basic operation to delete a record on a MySQL DB. First I gather an object I…
0
votes
2 answers

loopback - Can POST be used to retrieve a resource

Trying to use loopback framework for simulating a backend service. I need to retrieve an object using POST method. I know REST services typically allow POST to update/create a resource, but here, I cannot use GET with resource details for retrieving…
Mogalt
  • 11
  • 2
0
votes
1 answer

Strongloop fails to install in Windows 7, sqlite3@3.0.5 Failed to exec install script

I followed the strongloop pre installation requirments (http://docs.strongloop.com/display/SL/Installing+Node+and+StrongLoop+on+Windows) and everything was set without problems. However , each time I execute npm install -g npm the installation…
Roman Mik
  • 3,179
  • 3
  • 27
  • 49
0
votes
2 answers

LoopBack AngularJS extending User model

i'm facing some problems when using an extended user model in my AngularJS application. here is my user.json: { "name": "user", "base": "User", "strict": false, "idInjection": true, "properties": { "clientType": { "type":…
uNki
  • 193
  • 2
  • 13
0
votes
1 answer

Strongloop : Compare old model with the new instance in operation hook 'before save'

I implemented a "before save" operation hook in my code to compare the new instance about to be saved with the old one already in the database. For that, I compare the value given in the ctx.data with the one given by a query in the database. The…
valvince
  • 397
  • 1
  • 13
0
votes
1 answer

Limiting Number of Collection Records in Loopback Model

What I need to do is limit a particular collection (in my case logs) to 100 records. That is, when there are 100 logs and a new one is added, the oldest one is destroyed. I know I can do this in mongo by setting the capped/size/max values, but I…
bstar
  • 271
  • 2
  • 14
0
votes
2 answers

Strongloop deploy to Heroku doesn't work

Followed all the steps can't figure out how to get this done Keep getting bash: slc: command not found Procfile web: slc run 2015-03-26T02:43:13.998982+00:00 heroku[web.1]: State changed from crashed to starting 2015-03-26T02:43:18.757072+00:00…
TJ_
  • 255
  • 3
  • 12