r/reactjs • u/worldlymatron • 4h 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.
30
u/suubu-crtiv 3h 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.
22
u/Firm_Pay606 3h ago
That fact that you asked means "Hire someone"
19
u/N4dd 4h ago
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.
4
u/dutchman76 4h 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.
3
u/anonyuser415 4h ago
can you work with an engineer at your company? this sounds like a very cool way to do some collaborative work
1
u/h0rhay076 3h 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 3h 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/IamZeebo 3h ago
Not realistic at all. Hire someone or you’ll pay for it later.
1
u/novasilverpill 2h ago
i would not use React in this instance. use a vanilla js layer and a web component framework.
1
u/Iron1ze 1h 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/SubZane 1h ago
About 63%
1
u/davidbalbino 44m 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
0
u/tango650 React Router 3h 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/TUNG1 2h ago
None I think
-1
u/Abhistar14 3h ago
None! Use AI! Built this with 0 lines code written by me
-2
u/Suspicious-Watch9681 4h ago
Nowadays 0, you only need claude subscription