DEV Community

Diogo Ribeiro
Diogo Ribeiro

Posted on

Tools for a B2B App?!

Hi, i have an idea of building a B2B app where a person can go to the website, submit a job, and then have other people (workers) complete the job and get paid for it. So the employee would have to deposit his money, and on the job details ask how much he wants to pay each worker, now he can choose to give him a satisfied rating and pay him, non-satisfied rating and not pay him, or ask the worker to revise ( re-do what he did wrong ), now my problem is, how would i go about handling the payments, i have an idea of each user have is own wallet and when depositing into the platform, i would add that amount to that wallet where he could spend the money, now how would i go about charging from his wallet every time he gives a satisfied rating, should i just have a function where when he gives a satisfied it immediately updates his wallet balance charging for that job the worker did and then update the worker wallet balance with his payment? or should i do it in another way?

I am going to use React & Next Js
and for database storage and user handling ( auth ) i was thinking of Supabase, since i have done an App with it and loved it.

Top comments (1)

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

Well, supabase is a saas (software as a service) so it has a pricing that may either let you without service (if your resource needs surpass what you paid for) or be expensive as your project (read company) grows.

I rather use a PostgreSQL instance on premise and connect to it using Sequelize ORM from inside the Node part of Next JS thus being able to scale just the DB instance to what you really need (you can host it on a VPS and scale to a greater VPS or a cloud server at any point).

You just need good monitoring tools either be the case to anticipate that kind of needs.