News for hackers. Stuff that matters.
Re:Ask HN: What's your favorite way of getting a web app up ... by sampl on Saturday June 02, 2018 @11:11PM (#17217720)
Quickly? Firebase + React.

Seriously, don’t overlook this combo. Auth just works. Hosting built in, no backend or database server to maintain. No API, just subscribe to a collection right from the view. It just works (and is easily swapped for the real deal if you need it).

I made a guide/boilerplate to show you how (includes auth, CRUD, full text search, stripe subscriptions):

http://getfirefly.org/

Re:Ask HN: What's your favorite way of getting a web app up ... by KaoruAoiShiho on Saturday June 02, 2018 @11:41PM (#17217798)
Too expensive to be worth it. I'm totally fine with outsourcing stuff that is difficult and third parties can do better, but in this case the amount of stuff you're playing egregious "cloud" pricing for is too much. Just spend a handful of days learning one of the open source stacks and you'll be set for life. It's totally worth it assuming you'll be making more than 1 app ever.
Re:Ask HN: What's your favorite way of getting a web app up ... by onion2k on Sunday June 03, 2018 @05:32AM (#17218734)
Firebase's free tier is more than enough to play with an idea, and the next tier up is (100k concurrent users) $25/month ... if that's too expensive then there's something very wrong with your pricing model. Obviously this assumes you're not storing much data per user - you wouldn't build a imgur clone with it - but it's not that expensive for any typical SaaS app.
Re:Ask HN: What's your favorite way of getting a web app up ... by roadbeats on Sunday June 03, 2018 @07:51AM (#17219106)
Concurrent users are not the only limitation. Your app needs to fit the bandwith limits as well. I had to shutdown a very simple app with a few users because of ridiculous billing.
Re:Ask HN: What's your favorite way of getting a web app up ... by sampl on Sunday June 03, 2018 @07:50AM (#17219105)
And it's actually way cheaper for small apps if you "upgrade" to the Blaze plan and do pay-as-you-go billing. I often pay between $0 and %0.05/mo...

Full pricing: https://firebase.google.com/pricing/

Re:Ask HN: What's your favorite way of getting a web app up ... by sampl on Saturday June 02, 2018 @11:54PM (#17217821)
Guess it depends on what you consider expensive.

For me, time I’m writing unnecessary code or learning libraries I don’t already know is time I’m not spending thinking about the product. I’m a designer who just wants to ship.

I am open to suggestions though. What would you recommend for, say, auth instead? I’ve tried rails, Django, node/mongo, etc; even hosting a small db on compose.io comes with a chunky base fee, and I still have to do way too much work for user accounts/search/APIs/ORM. There’s a reason Firebase is popular with the yoof.

Change my mind though!

Re:Ask HN: What's your favorite way of getting a web app up ... by lucasverra on Sunday June 03, 2018 @02:54AM (#17218299)
My startup is betting on parse server platform [0]. For us its the most of 2 worlds.

- huge community supporting a codebase initially private

- open source now so you can host it anywhere

- 3rd party online instances to quickly start [1][2]

[0][http://parseplatform.org/]

[1][https://sashido.io]

[2][https://back4app.com]

[3][https://https://www.nodechef.com/parse-server]

Re:Ask HN: What's your favorite way of getting a web app up ... by fsloth on Sunday June 03, 2018 @08:49AM (#17219280)
"Just spend a handful of days learning one of the open source stacks"

Sure, but which one? :)

Re:Ask HN: What's your favorite way of getting a web app up ... by naranha on Sunday June 03, 2018 @03:39AM (#17218411)
Opensource alternative to firebase: couchdb . Less features but the essentials are there...
Re:Ask HN: What's your favorite way of getting a web app up ... by realPubkey on Sunday June 03, 2018 @03:47AM (#17218433)
If you use couchdb+rxdb, you have the same subscribe-to-collection thing but without the google lock in
Re:Ask HN: What's your favorite way of getting a web app up ... by Humphrey on Tuesday June 05, 2018 @04:54AM (#17235971)
While firebase has an expensive first tier, Firestore bills more for what you use, like AWS does.
Re:Ask HN: What's your favorite way of getting a web app up ... by rwieruch on Sunday June 03, 2018 @12:42AM (#17217938)
This.

Maybe I am biased because I develop most of my applications in React. But if you don't want to bother with any backend application and just want to get out quickly, build your React application with Firebase. That's how I do it and that's why I also covered my whole boilerplate process in a comprehensive tutorial [0].

- [0] https://www.robinwieruch.de/complete-firebase-authentication...

Re:Ask HN: What's your favorite way of getting a web app up ... by dmihal on Sunday June 03, 2018 @09:19AM (#17219375)
I still love the Meteor framework, even if it's not as popular these days. Auth "just works", The Mongo<->Server<->Client dataflow is super easy, and there's lots of tools to quickly and easily deploy it.

Now that React is supported, it's even easier for throwing together web apps.

Re:Ask HN: What's your favorite way of getting a web app up ... by rishav_sharan on Sunday June 03, 2018 @08:08AM (#17219175)
I just dropped firebase after nearly a month of development. Firestore lacks so many features that i consider basic. For example you can't even do a count query on the db and have jump hoops to even achieve this simple feature.
Re:Ask HN: What's your favorite way of getting a web app up ... by zwily on Saturday June 02, 2018 @11:46PM (#17217806)
I was gonna say the same thing. It’s cheap/nearly free if it’s just a little side project or low traffic thing. And a joy of a stack to work in.
Re:Ask HN: What's your favorite way of getting a web app up ... by auvrw on Sunday June 03, 2018 @01:21AM (#17218034)
yerp, by 2018, UI + SaaS backends is often the easiest way to get something deployed ... provided you want to deploy essentially the same thing other people already have + some customization ..

.. what's going to be neat to see is how that "essentially the same thing" changes over time.

deepstreamhub.com is another neat SaaS that's worth looking into for some cases that Firebase might not handle as well ... there are probably yet other SaaS products that cover other specifics and will be still more in the future..

.. obvious mention re. SaaS products is that they could evaporate at any time. warranty void where prohibited. all states except ... idk, AK, for some reason.

Re:Ask HN: What's your favorite way of getting a web app up ... by sbr464 on Sunday June 03, 2018 @11:16AM (#17219930)
Re:Ask HN: What's your favorite way of getting a web app up ... by trway1 on Sunday June 03, 2018 @06:17AM (#17218865)
I'm having trouble building with this. Can you elaborate a little bit more about the steps after adding adding all three project. I can't understand this

>> " Now let's connect our databases to our app by adding their "keys" to our app's environment ("env") files. You should generally keep connection keys like this secret, so first we'll rename our environment files to keep them from getting committed into git (the new filenames are listed in .gitignore). "

Re:Ask HN: What's your favorite way of getting a web app up ... by sampl on Sunday June 03, 2018 @07:21AM (#17219036)
My fault--I've re-added the sample env files, you can copy these, remove ".example" from the name, and add your keys:

https://github.com/sampl/firefly

Thanks for trying it out!

Re:Ask HN: What's your favorite way of getting a web app up ... by vlucas on Sunday June 03, 2018 @05:55PM (#17222483)
> Quickly? Firebase + React.

Came here to recommend this myself.

I built an SPA with React + Firebase (auth, db, hosting, and all) to help my wife and I track our kids allowance and spending in just over a day: https://parentbank.actridge.com/ (did I mention Firebase hosting allows HTTPS on custom domains?)

It's an awesome combo that is seriously under-utilized.

Re:Ask HN: What's your favorite way of getting a web app up ... by RenegadeEagle on Saturday June 02, 2018 @11:35PM (#17217785)
Good idea. Gonna look into this!
Re:Ask HN: What's your favorite way of getting a web app up ... by xstartup on Sunday June 03, 2018 @06:08AM (#17218839)
Just stripe subscription? Customers of my consultancy also require Bitcoin, Wire transfers and other payments. We use http://killbill.io/ now. It supports multi tenancy.