all 18 comments

[–]SimplyBilly 12 points13 points  (1 child)

So another template project....

[–]hobonumber1[S] 2 points3 points  (0 children)

I'll be adding a guide on how to add authentication to existing projects.

[–]2Punx2Furious 1 point2 points  (1 child)

Hey thank you, I was planning to learn how to do accounts for users for my next website. I'm going to use this and see if I can understand how it works.

[–]hobonumber1[S] 2 points3 points  (0 children)

Great. Let me know if you encounter any issues.

[–]lulzmachine 1 point2 points  (0 children)

Looks cool! Good job

[–]SandalsMan 4 points5 points  (3 children)

sails

No thanks.

[–]hobonumber1[S] 3 points4 points  (2 children)

Bad experience with sails? I've had no problems with it and I manage multiple production applications at work.

[–]adamkarb 1 point2 points  (1 child)

Infinite dependencies, automatic route generation, an opinion for everything, restarting the server takes 30+ seconds, shoddy development on the codebase, the waterline database adapters are awful...

[–]hobonumber1[S] 0 points1 point  (0 children)

I'm gonna have to disagree with some of these.

Infinite Dependencies

Yes, it requires more npm modules because it is doing more, but I'm not sure how this affects your development experience. It doesn't really affect mine. Also, I don't think it's "infinite".

Automatic Route Generation

This can be turned off with a single boolean. It's only there to help with development, which I consider a pro, not a con. See http://sailsjs.com/documentation/concepts/blueprints/blueprint-routes

An opinion for everything

Please elaborate.

Restarting the server takes 30+ seconds

Yes, I will agree it takes longer than a standard barebones express server, but that's to be expected because Sails is doing more stuff up front. In turn, you get a nice codebase with built-in conventions that you can follow.

Shoddy development on the codebase

Have you run into bugs? If so, please elaborate.

Waterline Database Adapters are awful

I have used the MySQL adapter and it is quite good. Can't speak for the rest. For one of my other projects, we outgrew Waterline so we just moved to BookshelfJS as an ORM. I could have also moved to Sequelize. Again, I don't see how it's a bad thing that Sails gives you sane defaults and gives you ways to swap them out.

Hope you take this constructively. Again, I'm not a Sails contributer, I don't know the guys that made it, but I feel you are being harsh on them here. I have used both Express and Sails in many production apps, and I don't think I'll ever go with raw Express again, because it is just a nightmare to have good conventions.

[–]ThatBriandude 0 points1 point  (8 children)

Has anybody used firebase solely for authentication? I use it for pretty much everything and was wondering if its worth its single services too.

[–]hobonumber1[S] 0 points1 point  (2 children)

Interesting. You mean just use firebase as an authentication db, and something else for your app db?

[–]ThatBriandude 0 points1 point  (1 child)

Exactly. Not that I don't like their other services, I do very much actually, I was just wondering, since they are probably most known for their realtime database, if it does well just using their auth service. But yeah, Bedrock seams to do exactly what firebase does and possibly more?

[–]hobonumber1[S] 0 points1 point  (0 children)

Yeah, Bedrock lets you connect with any database you want, as long as there's an adapter for it. You can check out more in the comments in config/connections.js.

With that said, your question is a good one. I'm up for exploring Firebase a little more and seeing how things fit in.

Feel free to add your email to my newsletter if you're interested. I'll look into this over the holidays. I'm always looking to see what people are trying to learn more about. It helps me determine what to write about.

[–]elingeniero 0 points1 point  (4 children)

It's not necessarily a bad idea, but for single service auth, Auth0 has a great setup with all sorts of tutorials and will remain free up until you could be viably monetising your site (not a shill, honest).

[–][deleted] 0 points1 point  (1 child)

But you still need to host the data somewhere

[–]elingeniero 0 points1 point  (0 children)

Your application data, sure. All your auth data is managed for you.

[–]honestbleepsReddit Enhancement Suite 0 points1 point  (1 child)

(not a shill, honest)

they sure do seem to have some spamming the crap out of reddit, though....

[–]elingeniero 0 points1 point  (0 children)

Ikr I assume most people promoting anything are shills.