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:

1288 questions
50
votes
7 answers

How to store files with meta data in LoopBack?

What I want to do: Have an html form, with a file input inside. When a file is chosen, the file input should upload the file, and get a file id, so when the form is submitted, the file id is posted with the form and written in the database. Shorter…
Mihaly KR
  • 2,333
  • 2
  • 17
  • 20
32
votes
1 answer

Destroy a model in loopback.io

How can I delete a model in strongloop's loopback.io? I have seen somewhere command called persistedModel.destroy() but when I exectute slc persistedModel.destroy() I get command not found error.
Abhishek Goel
  • 15,517
  • 8
  • 81
  • 62
20
votes
2 answers

What is the difference between common and server models in loopback?

When I'm creating a model in strongloop with the following command: slc loopback:model loopback asks me for choose between common model or server. Common model or server only? I really don't know what criteria to take into account to choose…
Luillyfe
  • 4,659
  • 8
  • 28
  • 41
19
votes
3 answers

Ensure unique field value in loopback model

How to ensure uniqueness of a particular field in loopback model. Like below is the model Post, I have a field genericId in it, I want it to be unique in the database, and loopback to through an error, on duplicate key insertion. { "name":…
Nishant
  • 3,424
  • 1
  • 16
  • 26
17
votes
2 answers

Which API Gateway is production ready and provides good performance & features?

We have many REST services within our infrastructure and these are built using different technologies(Java, Go, Ruby, NodeJS) but all of them have certain common requirement like Authentication, Authorization, Rate limiting, Analytics etc so we are…
ThinkFloyd
  • 4,893
  • 6
  • 33
  • 52
16
votes
1 answer

How to publish multiple NPM modules from a single node project?

The question is pretty straightforward: Is there some way to publish two different NPM modules to the npmjs registry from a single nodejs project? But for those of you wondering why the heck would someone even want to do that? ... the motivation…
pulkitsinghal
  • 3,273
  • 8
  • 40
  • 72
16
votes
8 answers

Auto-create mysql table with StrongLoop

I am trying to use Strongloop with MySql but cannot figure out how to migrate or automatically create tables into a MySql database. Is there at least a way to export the models into MySql schemas or do I have to manually create the tables? I've been…
glesage
  • 875
  • 2
  • 13
  • 30
15
votes
1 answer

What does "through model" mean in loopback?

When defining relation using "slc loopback:relation", it prompts about "through model" at the last line. ? Select the model to create the relationship from: CoffeeShop ? Relation type: has many ? Choose a model to create a relationship with:…
Zhou Nan
  • 151
  • 1
  • 3
14
votes
5 answers

How to Modify the StrongLoop's LoopBack Explorer CSS

We're using Strongloop's LoopBack for our REST APIs and would like to modify the CSS for the LoopBack Explorer. However, it's not clear which CSS files are being used (LoopBack vs Swagger) and where they're located. I was not able to find specific…
A2MetalCore
  • 1,394
  • 2
  • 22
  • 42
13
votes
1 answer

How to setup OAuth 2.0 server using loopback

I want to setup an OAuth 2.0 Server using Loopback using a package called loopback-component-oauth2 The documentation is here : https://docs.strongloop.com/display/public/LB/OAuth+2.0#OAuth2.0-UsingtheOAuth2component But it is very unclear, what…
user3655266
  • 794
  • 2
  • 8
  • 21
13
votes
5 answers

Error: "Double colon in host identifer"

I am trying to connect to a database that I have hosted at MLab. I am using the StrongLoop API. I've placed the config information for my hosted databases into my datasources.json and config.json files, but whenever I run the directory with npm…
sleepy_daze
  • 415
  • 1
  • 6
  • 19
13
votes
2 answers

Creating Permanent AccessToken in loopback

How to create a permanent access token for a StrongLoop API. Now for every user login it creates an access token. And unnecessary entry in my db I can increase the validity of access token(ttl) as mentioned here. But still it will generate for new…
Rameez
  • 571
  • 1
  • 7
  • 21
13
votes
2 answers

Loopback neq: null

I'm trying a query on a postgres database through the loopback api explorer: {"where": {"archived_at":{ "neq": null }}} However, I only get results where archived_at is null?
Bunker
  • 978
  • 3
  • 10
  • 25
13
votes
4 answers

Sequelize orm vs Loopback orm

I'm creating rest api backed by PostgreSQL. I like Strongloop Loopback framework, it streamlines api development. But how its built-in orm compared to sequelize? What advanced features has sequelize as dedicated sql orm, which are missing in…
rus1
  • 472
  • 5
  • 8
13
votes
2 answers

How do I get a hold of a Strongloop loopback model?

This is maddening, how do I get a hold of a loopback model so I can programmatically work with it ? I have a Persisted model named "Notification". I can interact with it using the REST explorer. I want to be able to work with it within the server,…
Warren
  • 713
  • 7
  • 18
1
2 3
85 86