News for hackers. Stuff that matters.
Re:Ask HN: What would be your stack if you are building an M... by bottlepalm on Thursday January 26, 2023 @09:56AM (#34532361)
Same, Next.js, Vercel, Prisma, Supabase. I push to my GitHub repo and the site is live and deployed in less than a minute.

With the stack you can use the same language, DTOs, libraries, etc.. both server and client side.

Server side rendering ensures a graceful handoff between server rendered state and the resulting app state on the client.

I’m also using MUI which includes all the components you need for a front end app.

I also just really like react/JSX, very strongly typed coupling between the html and JavaScript. Makes it very easy to refactor and pull out new components with confidence.

I really think this is the best stack for an MVP CRUD app right now. Interested to hear of anything better.

Re:Ask HN: What would be your stack if you are building an M... by jrvarela56 on Thursday January 26, 2023 @10:01AM (#34532442)
Ah you comment about MUI reminded me to include Mantine, also big productivity driver.
Re:Ask HN: What would be your stack if you are building an M... by turbobooster on Thursday January 26, 2023 @10:43AM (#34533119)
Wish I could afford vercel
Re:Ask HN: What would be your stack if you are building an M... by fullstackchris on Thursday January 26, 2023 @10:49AM (#34533227)
Super generous free similar product is netlify... you get 300 build minutes per month, I've never even gone above their free tier haha
Re:Ask HN: What would be your stack if you are building an M... by admn2 on Thursday January 26, 2023 @11:42AM (#34534103)
Unless something has changed, they explicitly disallow any website that facilitates for profit commerce. Granted I don't think they closely monitor it unless your bandwidth is over a certain threshold. However, Cloudflare Pages is free and unlimited FWIW but I doesn't seem as nice or fast as Vercel.
Re:Ask HN: What would be your stack if you are building an M... by bottlepalm on Thursday January 26, 2023 @11:50AM (#34534299)
Remember we’re talking about MVP. Moving this stack to a VPS would only add a day.
Re:Ask HN: What would be your stack if you are building an M... by 0xblinq on Thursday January 26, 2023 @12:14PM (#34534748)
This stack is pretty incomplete for most MVPs, as unless you're building something trivial like a landing page, you'll probably at some point also need libraries or a custom implementation for:

- Validations

- Translations

- Error and request logging and auditing

- Security (CQRS, CORS, CSRF)

- Permissions and a way to integrate it with your authentication (does supabase handle this? don't know)

- Email sending

- Background jobs

- Caching

- File uploading

- Rate limiting

- ...

Every time somebody suggests "just" Next.js, just "Remix", just "flask" or just [insert minimalist framework] I think they're either building something pretty trivial, or wasting a lot of time on rebuilding or integrating things you get for free with batteries included frameworks.

Re:Ask HN: What would be your stack if you are building an M... by Rastonbury on Thursday January 26, 2023 @12:41PM (#34535324)
That stuff isn't "hard" per se, and some of that stuff isn't even needed for a MVP, they're good to haves or only really required when you've got 100s of users (product dependant of course). If the MVP doesn't get there either iterate product or bin it
Re:Ask HN: What would be your stack if you are building an M... by 0xblinq on Thursday January 26, 2023 @03:52PM (#34538650)
None of these are difficult per se. Multiple of them, working seamlessly together, having them tested, documented and battle tested is a bit more difficult.

Then you think about all that time doing this could have been spent in actual business logic and it makes no sense to me anymore.

Re:Ask HN: What would be your stack if you are building an M... by kiwicopple on Thursday January 26, 2023 @12:49PM (#34535493)
(supabase CEO)

We wouldn't be the best fit for all of these, but here are some:

- Validations: handled already by Postgres and if you use JSONB you can use pg_jsonschema[0]

- Translations: probably won't ever be part of our stack, but for multilingual FTS we offer the pgroonga extension[1]

- Permissions: we offer AuthN (email & social logins, MFA, SSO) [2] and AuthZ with Postgres RLS[3]

- Background jobs: pg_cron [4]

- Caching: For images we have a smart cache [5]. We'll extend this to database queries over time

- File uploading: supabase storage [6]

[0] pg_jsonschema: https://supabase.com/blog/pg-jsonschema-a-postgres-extension...

[1] pgroonga: https://pgroonga.github.io/

[2] AuthN: https://supabase.com/docs/guides/auth/overview

[3] AuthZ with Postgres RLS: https://supabase.com/docs/guides/auth/row-level-security

[4] pg_cron: https://supabase.com/docs/guides/database/extensions/pgcron

[5] smart image cache: https://supabase.com/blog/storage-image-resizing-smart-cdn#s...

[6] supabase storage: https://supabase.com/storage

Re:Ask HN: What would be your stack if you are building an M... by jrvarela56 on Thursday January 26, 2023 @12:52PM (#34535551)
I mean, yeah you need more libraries, but I wouldn't list Formik/mobx/react-i18n/Sendgrid when talking at this level of abstraction.
Re:Ask HN: What would be your stack if you are building an M... by gardenhedge on Thursday January 26, 2023 @05:16PM (#34539667)
The post is literally about building an MVP. Remix isn't a minimalist framework - it's a full stack web framework.
Re:Ask HN: What would be your stack if you are building an M... by moneywoes on Friday January 27, 2023 @09:16PM (#34554429)
Maybe next js instead of supabase?
Re:Ask HN: What would be your stack if you are building an M... by burmecia on Monday January 30, 2023 @05:46PM (#34587689)
Next.js is more about frontend, but Supabase is more on backend. I cannot see any conflicts of the two, they can work with each other flawlessly.
Re:Ask HN: What would be your stack if you are building an M... by moneywoes on Thursday February 02, 2023 @03:07PM (#34632274)
Meant to say Nest.js sorry
Re:Ask HN: What would be your stack if you are building an M... by cmbothwell on Thursday January 26, 2023 @12:42PM (#34535336)
This is a really nice stack and what I’m using together with a colleague right now.

Do you use the serverless functions available with Vercel/Supabase? If so, I’m curious how you choose when to go with each provider.

Re:Ask HN: What would be your stack if you are building an M... by jrvarela56 on Thursday January 26, 2023 @12:53PM (#34535577)
I use vercel functions for this side-project bc they worked out of the box. Just least friction tbh not sure if optimal.