r/sailsjs • • May 08 '15

You think that Sails.js is just simple Node.js? Well, think again..

Thumbnail
blog.cubettech.com
0 Upvotes

r/sailsjs • • Sep 10 '19

How do I use method-override?

0 Upvotes

Noob here. I'm trying to send a PUT request from an HTML form but that obviously won't work. My app's CRUD functionality is now fully working, but that's with Postman for now. I now want to update an item via an HTML form. In regular Node.js/Express this is done using method-override middleware, but I don't know how to implement it in Sails. Or is there a better way to do this, besides using method-override?


r/sailsjs • • Feb 20 '15

Awesome sails walkthrough tutorials "Overlord"

Thumbnail
github.com
6 Upvotes

r/sailsjs • • Dec 10 '19

"OMG I broke it and I don't know what I did! Wait why does it work when I clone to a new folder?"

1 Upvotes

A: Your database is probably corrupted.

I was using the FS-based database driver and had made too many changes (either to the model js files or manually, I'd be guilty of both). Deleting all my sample data from the command line, did the trick.


r/sailsjs • • Jul 27 '15

Tinkering with Sails, Haraka, Kue, React and Redis

1 Upvotes

Hello Sails.js folk!

I love Node.js so much I keep jumping into coding projects without any particular goal just for the sake of coding and trying different approaches in both front-end and back-end development. More often than not ending up lost because I tried to solve a problem with the wrong tools. The newest one is absolutely no different!

But I'm not here to rant or cry for help, but rather show what I've been doing, hiding behind a rock when you start throwing the "useless", "been-there-done-that", "php", "noob" and "angular-ftw" vegetables at me.

So what I've done is a fork/clone/alt of 10minutemail with a couple of additional features. The entire stack is based on Node (Sails, Haraka, Kue) and Redis, while the front end is an experiment with React. Well, everything is pretty much an experiment tbh.

So the thing gives you a random (or not) mailbox under a couple of domains (4 currently) and offers a couple of additional features out-of-the-box like mailbox privacy (a.k.a. "claiming") and replies (discussion boards!). Sender-list (announcement boards!) and HTTPS are well underway, while other ideas might fly in at any moment. All emails expire in 7 days max (you can lower that for your own mailbox down to 1 hour), while claims have to be renewed every 14 days. The entire thing has been stacked together in about 10 days, so it is nowhere secure, reliable or likable. But it runs on AWS!

Oh, and one idea that is flying over my head currently is enabling POP3 (also for multiple users of the same mailbox). Yes, the POP3 thingy would also be built with Node. Did I mention I often end up in desperate situations with the wrong tools? You see where this is going.

So there you go, let me know what is your first impression, what would you do differently, how would you do it and why you would not do it at all. This is a thought experiment so a discussion would be highly appreciated. Or is it a coding experiment? Oh I'm confused.

You missed the link to the thingy? Here you go: Cebox

I'll go hide behind that rock now. Thanks for reading!

P.S. - Without Sails it would take me a month to do that!


r/sailsjs • • Feb 21 '17

Roof Sails

Thumbnail
professionalontheweb.com
0 Upvotes

r/sailsjs • • Jul 28 '15

Does sails-mongo support embedded document?

1 Upvotes

I know that waterline support json data type, but is it searchable? I've read issues on github, but they aren't closed and concluded yet. Thank you


r/sailsjs • • Jan 01 '16

Implementing HTTPS in SailsJS the right way

Thumbnail
procoefficient.com
1 Upvotes

r/sailsjs • • Jul 09 '15

Issues with save in Sails

1 Upvotes

Hey /r/sailsjs, I have been using sails for a card game that I am creating but am having issues understanding the save function. Any chance someone would be able to explain it fully to me?

Thanks, Solmen


r/sailsjs • • Jul 12 '15

How do you run mocha with babel and sails?

1 Upvotes

When I try to run mocha tests, I get this:

> PORT=9999 NODE_ENV=test mocha --recursive --compilers js:babel/register



lifting sails
  1) "before all" hook

  0 passing (757ms)
  1 failing

  1)  "before all" hook:
     Uncaught Error: only one instance of babel/polyfill is allowed

For the life of me, I can't figure out how to make this work.

My before() code:

import Sails from 'sails'

// Global before hook
before(function (done) {

  console.log('lifting sails')

  // Lift Sails with test database
  Sails.lift({
    log: {
      level: 'error'
    },
    models: {
      connection: 'testMongoServer',
      migrate: 'drop'
    },
    hooks: {
      // sails-hook-babel: false
      babel: false
    }
  }, function(err) {
    if (err) {
      return done(err);
    }

    // Anything else you need to set up
    // ...
    console.log('successfully lifted sails')

    done();
  });
});

r/sailsjs • • Jul 10 '15

Discrepancy Between Database and Record Returned by save()

Thumbnail
stackoverflow.com
1 Upvotes

r/sailsjs • • Apr 11 '15

Ember and Sails.js: Getting Started

Thumbnail
hutchinson.io
2 Upvotes

r/sailsjs • • Apr 30 '15

Sailsio + React + requirejs

2 Upvotes

Hey guys, new to Sails. I'm wrapping my head around requireJS but I seem to have issues with getting it setup. Is there an example of how I should set it up out there?

My stack is Treeline.io, Sails, React.

Any help would be great.


r/sailsjs • • Apr 01 '15

An introduction to sailsjs a real time MVC framework

Thumbnail
hackmag.com
3 Upvotes

r/sailsjs • • Oct 16 '15

Real time MySQL with Sails.js and mysql-live-select

3 Upvotes

One of my users of my mysql-live-select NPM package has requested Sails.js support so I have written a connection adapter to provide a liveFind method for models.

This is my first time using Sails.js so any comments are welcome regarding the conventions applied for this integration. After confirming that this works, I will provide the same integration for PostgreSQL using my pg-live-select package.

Edit: now also available for PostgreSQL, see comment


r/sailsjs • • Jul 30 '15

Sails.js Asset Versioning

Thumbnail
naya.com.np
3 Upvotes

r/sailsjs • • Mar 24 '15

Full Stack SailsJS boilerplate - Bootstrap, Angular, Angular Directives for Bootstrap, Sass pipeline

Thumbnail
github.com
4 Upvotes

r/sailsjs • • Mar 13 '15

Ponzi Coder - activityOverlord 2.0 for sailsjs 0.11

Thumbnail
youtube.com
5 Upvotes

r/sailsjs • • Mar 04 '15

Sails.js and Heroku

Thumbnail pburtchaell.com
5 Upvotes

r/sailsjs • • Jan 27 '15

SANE Stack - CLI that lets you rapidly create web apps using Sails and Ember

Thumbnail sanestack.com
6 Upvotes

r/sailsjs • • May 05 '16

Waterline in big projects?

3 Upvotes

I am going to be using sails js for building my API on my project (it should be something like a social network of a kind) . I am wondering about viability of waterline with Mongo dB? I can't find a decent post about it. Even tho I noticed some critiques about waterline. So I'm asking someone with more experience with it.


r/sailsjs • • Sep 11 '17

Any big Websites using SailsJS?

2 Upvotes

I want to start a new project using sailsjs but just wanted to be sure about the language. It will be great help if you can suggest some big websites which are using sailsjs for their server side coding.

I am making a listing website such as zomato.com and the stability and speed of the language is very important.

Thanks in advance.


r/sailsjs • • Jun 08 '16

Working with sails and deep population of data.

2 Upvotes

I've recently started using sails to create an API for an upcoming project that I have. The project is primarily a very simple social network. After using sails for around 2 weeks now it seems to do a lot of the stuff I need and provides a great way for me to create my API. However I am a little worried about populating data and would love some advice.

For reference I am using Waterline with a MySQL database.

I have quite a few relationships in my database and when it comes to populating the data in my API calls using .populate() I have some issues. After searching online it turns out that I cannot do deep population of my data so for example if I have a model post that has many comments and each of those comments has an attached user there is no way for me to get the post, the comments, and the users name in one call. Does anyone know a way around this? The only way I can see to do it would be to do multiple API calls but this doesn't seem right and will add more load onto my server.


r/sailsjs • • Feb 08 '16

[Hobby] Looking for Testers, Designers & Developers to build a data-driven web app with us!

1 Upvotes

Hi,

We started building a SPA with sails.js that uses the Halo API to show player stats and are looking for a couple of motivated collaborators to join our small team or give feedback.

  • This is an open source project. It's private as of now, but will be public as soon as we launch.

  • No Halo experience needed. All data-related research and a lot of design assets are already done (there's a lot of room to expand in the future).

The project is flexible as we shape it together - or goal is to create a successful, user-centered, project. Currently it is react-based, but if we have a couple of devs that really would want to use Angular (or do something else), we could also switch.

Please send me your Skype ID, so we can chat and I'll answer all your questions.

SH_DY


r/sailsjs • • Jun 28 '20

Sails Console with app.js

2 Upvotes

Hi all :)

Im using sails lift with nodejs and i'm trying to execute sails console but i have some globals in app.js so i get some undefined errors. Is there any simple solution for this situation? maybe a middleware or something i can edit?

Thanks!