News for hackers. Stuff that matters.
Re:Vercel, formerly Zeit, raises $21M Series A by baxuz on Tuesday April 21, 2020 @09:38AM (#22934828)
I've recently had a simple requirement. To build a site with content gated behind a paywall.

There's no way to have SSR'd gated content without paying a gazillion bucks to either netlify or next for role-based redirects.

Even if I would go for CSR'd content for the gated part, I'd have to fiddle with JWT tokens.

To handle users, I'd have to use a 3rd party service such as oauth, since zeit doesn't support users, and netlify's model is severely limited.

For a CMS, I'd have to again go for a subscription model.

Data and APIs are also another issue. There is no way to use something like Strapi since that needs to have a real DB behind it.

Now, to orchestrate the users for role-base redirects, oauth, payment gateaway data and everything else... I've no idea where to even start.

Re:Vercel, formerly Zeit, raises $21M Series A by searchableguy on Tuesday April 21, 2020 @09:48AM (#22934927)
Don't. Just use a real backend. btw, Hasura can work with Google cloud run and heroku. Check it out. It's similar to strapi.
Re:Vercel, formerly Zeit, raises $21M Series A by nunopato on Tuesday April 21, 2020 @12:14PM (#22936287)
Nhost (https://nhost.io/) is another option for Hasura.
Re:Vercel, formerly Zeit, raises $21M Series A by lucasverra on Friday April 24, 2020 @08:48AM (#22967381)
have you used this in production ? any recco ?
Re:Vercel, formerly Zeit, raises $21M Series A by rpeden on Tuesday April 21, 2020 @09:59AM (#22935027)
Wouldn't WordPress with a couple of plugins solve the content with a paywall problem in about 15 minutes?

I'm not asking that flippantly. And I know there are plenty of reasons not to use WP, so I apologize if this is a dumb question.

It just seems like WP might solve that particular problem for you without much work. And it solves other problems too, like managing users and tracking revision history for every piece of content.

I think Digital Ocean has a one click setup for WordPress. WP isn't my favorite software to work with as a developer, but I use it when it's the right took for the job because for the most part, I've been able to deploy it and forget about it because it has just kept chugging along and getting the job done without any intervention from me.

Re:Vercel, formerly Zeit, raises $21M Series A by mercer on Tuesday April 21, 2020 @10:13AM (#22935120)
I use Wordpress for many clients because it's the simplest solution that also ensure they can find other developers to take over if I'm not there.

Wordpress is a dumpster fire and I hate it with a passion, though. Like, viscerally, almost as much as I dislike Drupal and Joomla. I'd use the term PTSD but that strikes me as insensitive.

But I still use it for many clients, because it's the simplest, easiest solution that other (and crucially, cheap!) developers can take over when I'm not there anymore.

Re:Vercel, formerly Zeit, raises $21M Series A by stevenkkim on Wednesday April 22, 2020 @01:18AM (#22942466)
I don’t know if this would meet your needs, but I recently built a gated static site for personal use using Gatsby + Firebase for Auth and Hosting. Firebase Auth took 10 minutes to set up. I didn’t need a DB but I will use Firestore if needed in the future. All of it was quite easy and enjoyable to do.
Re:Vercel, formerly Zeit, raises $21M Series A by inapis on Thursday April 23, 2020 @06:50AM (#22954580)
Ghost? They recent rolled out inbuilt memberships. Wont work if you are selling one time access though.