Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 09:38
  • 09:24
    OscarMeier edited #6939
  • 09:23
    sailsbot commented #6939
  • 09:23
    OscarMeier opened #6939
  • 07:23
    hamilion starred balderdashy/sails
  • 01:20
    yhkaplan starred balderdashy/sails
  • Jan 22 15:13
    sailsbot unlabeled #4630
  • Jan 22 15:13
    webdeveloper4testing commented #4630
  • Jan 22 14:49
    gitE0Z9 starred balderdashy/sails
  • Jan 22 11:44
    AmitPhulera review_requested #1298
  • Jan 22 11:42
    AmitPhulera edited #1298
  • Jan 22 11:35
    sailsbot commented #1298
  • Jan 22 11:35
    sailsbot unlabeled #1298
  • Jan 22 11:35
    AmitPhulera edited #1298
  • Jan 22 11:13
    sailsbot labeled #1298
  • Jan 22 11:13
    sailsbot commented #1298
  • Jan 22 11:13
    AmitPhulera opened #1298
  • Jan 22 10:18
    shamim-42 starred balderdashy/sails
  • Jan 22 09:45
    sailsbot commented #1297
  • Jan 22 09:45
    sailsbot unlabeled #1297
Alexander Romano
@vip3rousmango
Anyone have any guidance on adding 3rd party logging tools to Sails like Rollbar or Sentry.io? Noticed a Rollbar in sailsjs example but it's 4 years old, was hoping for something more current on how to properly add this in the "sails" way.
Alexander Romano
@vip3rousmango
Would I want to be setting up some custom middleware to attach onto HTTP requests?
Ernesto Celis
@ecelis
clear
asuprana
@asuprana
hi
Is there anyone can help with dynamic database loading with sails?
theking
@thg6060
toang
Robertino Vasilescu
@Rho-bur

Hi,
If anybody from the Sails team sees this I would very much appreciate an insight.
I a few months I’ll be finishing my first major Node project (web app, admin app, IOS and Android apps).
For the web app I chose Sails and despite of a steep learning curve I don’t regret it.
But since is very likely that in the second part of the year I’ll switch to a new major Node project I wonder if I could still choose Sails for its web part.
This depends on two factors:

  1. If I find a way to include Vue plugins and I mean multi-component plugins not just SFC components because these work, did that already but so far I haven’t been able to add multi-components.
  2. The approach the Sails team uses in regards of the soon to be Vue 3 with its composition API.
    What will the Sails team do? Join this or avoid it and stick with Vue 2+?

I don’t really expect an answer for the #1 but the #2 is really important to me and maybe to others in my shoes so please, Sails team, let us know what you think!

Noitidart
@Noitidart
Is it possible to use my connected redis that is used for sessions, for my own little key/value entry?
RSA
@aflatoon2874
@Noitidart Yes, install sails-redis package and define a datastore to connect to the same redis server. The session uses connect-redis which I think cannot be used for caching purposes
PpyMohan
@PpyMohan
I am new to sailsjs. I want to store some data in session using redis. And get data in another request
Can i get any examples
RSA
@aflatoon2874
Noitidart
@Noitidart
Ooo thanks @aflatoon2874
PpyMohan
@PpyMohan
This is not that much clear. Is there any
Make It Count
@makeitcount

We’ve avoided adding social auth to “caviar” (the web app template) thus far because that stuff tends to get out of date pretty quickly. I would feel comfortable including opt-in social login for one reference provider at some point though

That said, I’ve found you usually end up delivering way more business value by punting on social auth altogether until you have a completely-tested, bug-free, working beta version of your application deployed on a production server someplace and being actively used by non-technical testers or friendly early adopters. In my experience, that’s been true whether it’s the product for a simple startup or a complicated, industry-specific consumer tool for an established brand

@mikermcneil

Is there any boiler-plate/guide on implementing authentication with session management(backed by redis) without passport js

?
RZsam
@RZsam
hi there
I'm starting to use sails
is there a way to save model instance after find?
something like
Model.findOne({...}).exec((err,model)=>{
// some works
model.save();
})
it seems like sails had save() before version 1
right?
RSA
@aflatoon2874
@PpyMohan What is not clear? The docs explain how to setup and configure connect-redis as a common persistent store for your session. When session management is enabled (it is enabled by default) sails will automatically attach your session object to the req object. You can use this session object to read and add properties wherever you have access to req object, in controllers, policies, middleware, etc.
Evgeniy
@gunner-27
How to access environment specific variables from static assets in sails.js?
Paul Weijtens
@pulli23
What node versions do sails work on?
Satish Verma
@satishverma143
Just I want to know, How can i exclude the specific model from auto-migration in sails v1.0
I have tried to add migrate: 'safe' in that model. but its not working.
Robertino Vasilescu
@Rho-bur
@satishverma143 you could add migrate: 'safe' to you module, right before the attributes object.
khanhnguyen1996
@khanhnguyen1996
hi everyone
have anybody have problem like this?
Error: In production, `sails.config.uploads.adapter` must be set explicitly!
Robertino Vasilescu
@Rho-bur

Hi,
If anybody from the Sails team sees this I would very much appreciate an insight.
I a few months I’ll be finishing my first major Node project (web app, admin app, IOS and Android apps).
For the web app I chose Sails and despite of a steep learning curve I don’t regret it.
But since is very likely that in the second part of the year I’ll switch to a new major Node project I wonder if I could still choose Sails for its web part.
This depends on two factors:

  1. If I find a way to include Vue plugins and I mean multi-component plugins not just SFC components because these work, did that already but so far I haven’t been able to add multi-components.
  2. The approach the Sails team uses in regards of the soon to be Vue 3 with its composition API.
    What will the Sails team do? Join this or avoid it and stick with Vue 2+?

I don’t really expect an answer for the #1 but the #2 is really important to me and maybe to others in my shoes so please, Sails team, let us know what you think!

@rachaelshaw @mikermcneil please guys, an opinion about it?

Shobhit Singhal
@shobhitsinghal624
Does waterline / sails do some internal checks to figure out an API call is not modified and return 304 Not Modified reponse? I'm getting some 304 responses on my API requests, but I haven't explicitly provided any 304 response.
Jarrod
@nahanil

@shobhitsinghal624 Not quite. I think it's express sending back an ETag header with your requests. Then when your browser requests the same resource again the browser sends an If-None-Match header with the ETag from the first request. Your app generates the output, express ends up generating the same ETag, decides the content hasn't changed becuase it matches the ETag sent with your request and sets the 304 response code.
There's no magic to stop it from hitting your database for each request.

Not sure if helpful :)

Cosmin Anghel
@AngCosmin
Hey! What is the best method to generate Bearer tokens and password encryption?
RSA
@aflatoon2874
@AngCosmin Use JWT for bearer tokens and bcrypt for password encryption
Cosmin Anghel
@AngCosmin
@aflatoon2874 Thanks. I used jsonwebtoken and bcrypt. Everything is working good :)
Nirmaljeet
@Nirmalj02731485_twitter
hello guys i'm in trouble to upload file in sails
Nirmaljeet
@Nirmalj02731485_twitter
hey! am trying to get images folder path to get image url
but am unable to reach please let me know if i'm doing wrong
here is the link where i try to get image
http://localhost:1338/images/04b57035-743f-48c0-a192-9957852c619f.jpg
RSA
@aflatoon2874
@Nirmalj02731485_twitter Anything that is under assets folder is directly accessible from a URL. In your case assets/images/04b57035-743f-48c0-a192-9957852c619f.jpg should exist on your server to make it work.
Lou-adrien
@LouAdrien
Hello guys, just wondering, is it normal that some middleware declared in the config/http file are only called on some routes, but not others?
Martin Barilík
@martinbarilik
Hi there, how does one adds new column to existing table to production database? I can't find anything useful, maybe using wrong words
web developer
@webdeveloper4testing
please help
i use waterline as standalone with express i can't use .native() for sails-mongo adapter
RSA
@aflatoon2874
@webdeveloper4testing .native() is for RDBMS not for no-sql datastores
web developer
@webdeveloper4testing
thanks but i red in sails documentation that .query for RDBMS and .native() for mongo
RSA
@aflatoon2874
@webdeveloper4testing Yes you are right. I stand corrected, confused with .sendNativeQuery(). As per docs .native() is deprecated. Follow this link to execute raw queries https://sailsjs.com/documentation/reference/waterline-orm/datastores/manager
web developer
@webdeveloper4testing
thanks @aflatoon2874 i found solution by use this code :
await new Promise(async (acp, rjt) => {
await Banks._adapter.mongodb(config.database.host, async (err, db) => {
if (err) {
rjt();
}
let data = await db.collection("accounts").aggregate(where);
acp(await data.toArray());
});
});
Evan Timmermann
@EvanTimmermann
Hey all. Does anyone have an example of how to connect to an AWS PostgreSQL RDS using SSL? I'm having a hard time trying to find any documentation on passing along the root RDS CAs to the waterline connection.
Rahul
@aryu2407_twitter
how can i fetch particular field from deep populate in sails js
Rahul
@aryu2407_twitter

let results = await PinCode.findOne({
id: model.id,

}).populate('city.state.country',{select:name})
      res.send(JSON.stringify({
            results
        },
   ));

},

it is not wroking
Adarsh Kumrawat
@Adarsh2495
.meta({ fetch: true, enableExperimentalDeepTargets: true })
you can use the deeptargets in meta
It works for me but as name shows, it's just experimental
Tommy
@tommy-gansta
hi there! I have a hook for promisify my services (please see the code below). And it was working ok on version 0.11, now on 1.0.0 I cannot access Async functions. Is there any solution for this kind of problem? Thanks in advance!
"use strict";
const bluebird = require('bluebird')

module.exports = sails => {
  return {
    initialize: cb => {
      sails.on('ready', function() {
        Object.keys(sails.services).forEach(function (key) {
          bluebird.promisifyAll(sails.services[key])
        })
      })

      return cb();
    }
  }
}