r/reactjs • • 4d ago

Needs Help How much coding do you actually need to know to build a small internal react app?

Say you work at a small accounting firm and want to build something to keep track of clients, documents and deadlines instead of having everything scattered across spreadsheets. If AI builds the React part and Supabase handles the database and logins what else would you actually need? The part that confuses me is how you make sure only the right people can access certain data. Is that something you can set up within the app or do you need to write a separate backend for it? Trying to understand how realistic this is for someone who isn't a developer.

20 Upvotes

38 comments sorted by

42

u/N4dd 4d ago • Bravo

Just curious why the only two options are spreadsheets and building your own vibe-coded app to run this company. There are many project management apps that fill the gap between those two things.

To answer your actual question, it's possible, but you wouldn't have any idea how it's working and it would inevitably have bugs that you would have no idea how to fix except asking Claude to do it. That isn't a solid foundation to put your client management, documents, and deadlines into.

Is your client data supposed to be secure? What happens when you don't configure Supabase correctly, or the AI opens a security rule because "it's not working", and it changes a rule to "make it work", well now your client data is exposed.

I don't mean to be a downer, it's quite a risk. Maybe it'll work out. Maybe it won't. All so you don't have to pay a subscription fee.

14

u/ccfreem 4d ago

This plus being on the hook for any sort of security vulnerabilities as they come through.

Building is Ezpz, but you then become the contact when some researcher or bad actor finds flaws in services that you have no control over. Supabase could get an exploit, any hosting service could get an exploit, and your credentials could get leaked. That’s where it becomes not fun.

Not saying don’t do it, just know the risk that ai generated code puts you, your employer, and your customers (if you put their data in your system) in.

And for the love of god don’t build your own auth, use existing services

55

u/Firm_Pay606 4d ago

That fact that you asked means "Hire someone"

5

u/CandidResearch9567 3d ago

the scary part with accounting data is you wouldn't even know the permissions were wide open until someone pokes around the network tab

7

u/dutchman76 4d ago

I think it can be done with AI, but being a developer and knowing what you're doing really helps with security, and down the line, you'll be asking it to fix one thing, and something else breaks.

TBH, it's probably worth hiring a developer or paying for a Saas, if you can't find one, I would be open to building one that does what you need.

10

u/suubu-crtiv 4d ago

no separate backend, supabase RLS handles it. just never put the service_role key in the react code since it bypasses RLS, and test policies by logging in as a limited user.

3

u/anonyuser415 4d ago

can you work with an engineer at your company? this sounds like a very cool way to do some collaborative work

2

u/IamZeebo 4d ago

Not realistic at all.  Hire someone or you’ll pay for it later.  

1

u/h0rhay076 4d ago

To your specific question: no, you don't need a separate backend for that. Supabase does it in the database with Row Level Security. You write policies on each table, like "a user can only read client rows where they're on that client's team", and the database enforces it no matter what the React code does. File storage has the same kind of policies for documents.
The catch is that this is the one part you can't leave to AI and hope. If RLS is off on a table, or a policy is too loose, anyone logged in can read everything, and the app will look like it works fine. For an accounting firm that's client financial data.
So it's realistic, but I'd get the AI to build the screens and pay a developer for a few hours to review the policies and test them with two different logins before real data goes in.

1

u/ahu_huracan 4d ago

its easy to write code but you need to think about security and compliance and availability and backups. llm writes code that's it.

1

u/Iron1ze 3d ago

If data loss, outages and bugs and broken permissions are acceptable AND that service ONLY runs internally (not reachable in the internet) then go ahead and do it. If any of those are a problem then you shouldn’t do that or figure out responsibilities.

Since you mention supabase that’s likely not the case and you would have to also accept leaked data to the public.

1

u/davidbalbino 3d ago

the RLS answers above are right, but one gotcha nobody mentioned: if the AI creates tables with SQL (migrations, SQL editor), RLS is not enabled by default, and with RLS off that table is readable and writable by anyone holding the anon key, which is public in your React bundle anyway. so after every change open Advisors > Security Advisor in the supabase dashboard, it flags tables with RLS disabled or with no policies. same thing for the storage bucket with the documents, keep it private and add policies there too, not only on the tables. tbh for a non-dev I think is the one check you can't skip

1

u/Medical-Aerie9957 3d ago

If you need role based access then yes you definitely need backend, just putting things into database won't work. Server has to be the source of truth react just show you the data. If you are dealing with sensitive data please just hire a developer it will save you a lot of trouble. 

1

u/codeprimate 3d ago

This is not trivial and risk is high in multiple directions. I have 20YOE and would approach this carefully myself.

You need to hire someone for this, at least to get started and scaffold it in a secure way.

1

u/AkA47_G 3d ago

Ai can create it but not manage it you need knowledge reallly like if its something static sure ai but if its gonna have a whole ecosystem yeah you need people

1

u/Independent-Bonus529 3d ago

well supabase is enough for a backend service , but never rely on react for access control becasue any one can access the underlying api even if yo hide the button , also i think you need an experienced developer when it comes to dealing with sensitive financial documents

1

u/IMP4283 3d ago

This doesn’t really answer your question but the thing I find my business partners misunderstanding is that while it’s fast and generally cheap to build an app with AI, it’s far more complicated and expensive to make that make that same app production ready and the maintain it longterm.

1

u/bhison 3d ago

Zero. At least initially.

But use a premium model and reiterate your business priorities over and over e.g. customer data, uptime, security.

Don't blindly trust, treat it like a consultant who seems to know what he's doing but is suspiciously cheap.

However, also, ask an agent to help you compare cost/risk/benefit between using a third party tool and rolling your own with an agent. Also investigate if there's open source options to self host.

1

u/allaboutzaid 3d ago

As someone still learning React, the bit I'd be most careful about is exactly the part you flagged — who can see what. From what I've picked up so far, the access rules live in Supabase itself, not in the React code, so a user can't just open the browser tools and see another client's documents. I'd still want someone who knows Supabase to check those rules before any real client data went in, because that's the one mistake you wouldn't notice until it was too late.

1

u/TheRNGuy 2d ago

Most API, and some patterns. 

1

u/prateekshawebdesign 2d ago

With Supabase, Row Level Security enforces who sees which client records right in the database, so you do not need a separate backend. Just get someone to audit those RLS policies before storing real accounting files.

1

u/TheRNGuy 2d ago

JS or TS

1

u/Ok-Procedure2350 2d ago

I don't want to overwhelm you, but React and Supabase are just two building blocks of a larger structure. You need ways to write queries for CRUD operations, validate that data (e.g. with Zod), protect routes, and handle environment variables carefully. For your specific question about who can see what, look into Supabase's Row Level Security (RLS). That's where data access actually gets enforced. The gap between zero and a frontend library is much smaller than the gap between that and full-stack, especially when sensitive data is at stake. I don't mean you'd have to learn it all yourself, but reviewing the interfaces an AI assistant builds is easy, while the backend is hard to review if you don't know what to look for.

1

u/Friendly_Mousse_7782 1d ago

i would personally advise going with a ready-made, out-of-the-box solution for this, like odoo or something similar.

and, not to be a party pooper bc it's trendy to hate on microsoft, but microsoft actually has great corporate tools! depending on your company's existing subscriptions and needs, you could look into dynamics 365, planner, sharepoint or even power apps if you want something more customised. when it comes to permission management, different user roles and data security, they've already thought these problems through extensively for years. why reinvent the wheel?

ive met lovable salespeople who claim to have helped companies vibe-code their own CRM systems. and while i absolutely believe that's possible, i'd be curious to see how these systems hold up a year or two down the line. who's maintaining them? who's responsible for security, backups, bugs and new feature requests?

supabase does have row-level security (RLS), so you don't necessarily need a separate backend for permission management. but you still need enough technical knowledge to understand whether your security policies are actually doing what you think they're doing. especially for an accounting firm dealing with sensitive client data, the question isn't really whether you can build it without knowing how to code, but whether you can confidently take responsibility for the system you're building.

i'm all for vibe coding, but i'd first ask myself what i'm gaining by building a custom solution that existing software doesn't already offer.

1

u/TUNG1 3d ago

None I think

-1

u/tango650 React Router 4d ago

ZERO.

a small react app is only a prompt away in claude or codex - you dont even need to know how change the windows color theme to be able to prompt for that app.

0

u/novasilverpill 3d ago

i would not use React in this instance. use a vanilla js layer and a web component framework.

0

u/SubZane 3d ago

About 63%

-2

u/Suspicious-Watch9681 4d ago

Nowadays 0, you only need claude subscription

-4

u/Abhistar14 4d ago

None! Use AI! Built this with 0 lines code written by me

3

u/TheHerbsAndSpices 3d ago

0 lines code written by me

We can tell.

-2

u/Abhistar14 3d ago

“How bro felt after saying that”

3

u/TheHerbsAndSpices 3d ago

Don't talk Gen Alpha to adults. It's embarrassing.

1

u/GenericSpaciesMaster 3d ago

Complete piece of slop garbage