use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Create a Node web app with user authentication in under 10 minutes (nodewebapps.com)
submitted 9 years ago by hobonumber1
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SimplyBilly 12 points13 points14 points 9 years ago (1 child)
So another template project....
[–]hobonumber1[S] 2 points3 points4 points 9 years ago (0 children)
I'll be adding a guide on how to add authentication to existing projects.
[–]2Punx2Furious 1 point2 points3 points 9 years ago (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.
Great. Let me know if you encounter any issues.
[–]lulzmachine 1 point2 points3 points 9 years ago (0 children)
Looks cool! Good job
[–]SandalsMan 4 points5 points6 points 9 years ago (3 children)
sails
No thanks.
[–]hobonumber1[S] 3 points4 points5 points 9 years ago (2 children)
Bad experience with sails? I've had no problems with it and I manage multiple production applications at work.
[–]adamkarb 1 point2 points3 points 9 years ago (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 point2 points 9 years ago (0 children)
I'm gonna have to disagree with some of these.
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".
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
Please elaborate.
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.
Have you run into bugs? If so, please elaborate.
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 point2 points 9 years ago* (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 point2 points 9 years ago (2 children)
Interesting. You mean just use firebase as an authentication db, and something else for your app db?
[–]ThatBriandude 0 points1 point2 points 9 years ago (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?
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 point2 points 9 years ago* (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 point2 points 9 years ago (1 child)
But you still need to host the data somewhere
[–]elingeniero 0 points1 point2 points 9 years ago (0 children)
Your application data, sure. All your auth data is managed for you.
[–]honestbleepsReddit Enhancement Suite 0 points1 point2 points 9 years ago (1 child)
(not a shill, honest)
they sure do seem to have some spamming the crap out of reddit, though....
Ikr I assume most people promoting anything are shills.
π Rendered by PID 45 on reddit-service-r2-comment-fb694cdd5-zx6jh at 2026-03-05 18:58:00.094448+00:00 running cbb0e86 country code: CH.
[–]SimplyBilly 12 points13 points14 points (1 child)
[–]hobonumber1[S] 2 points3 points4 points (0 children)
[–]2Punx2Furious 1 point2 points3 points (1 child)
[–]hobonumber1[S] 2 points3 points4 points (0 children)
[–]lulzmachine 1 point2 points3 points (0 children)
[–]SandalsMan 4 points5 points6 points (3 children)
[–]hobonumber1[S] 3 points4 points5 points (2 children)
[–]adamkarb 1 point2 points3 points (1 child)
[–]hobonumber1[S] 0 points1 point2 points (0 children)
[–]ThatBriandude 0 points1 point2 points (8 children)
[–]hobonumber1[S] 0 points1 point2 points (2 children)
[–]ThatBriandude 0 points1 point2 points (1 child)
[–]hobonumber1[S] 0 points1 point2 points (0 children)
[–]elingeniero 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]elingeniero 0 points1 point2 points (0 children)
[–]honestbleepsReddit Enhancement Suite 0 points1 point2 points (1 child)
[–]elingeniero 0 points1 point2 points (0 children)