can you help me build a backend with rowy with no coding am using rowy and flutterflow…
- User
can you help me build a backend with rowy with no coding am using rowy and flutterflow to build a superapp
- Assistant
- User
so when i have linked my table from flutterflow and edit them in rowy am actually editing the same document that is in firestore
- Assistant
Yes, that's correct. Both Rowy and FlutterFlow, when connected to Firestore, are essentially interfaces that allow you to interact with the same Firestore database.
When you use Rowy to edit data in your Firestore database, you are directly manipulating documents and collections in your Firestore. Similarly, when you're using FlutterFlow and perform operations like creating, reading, updating, or deleting documents, these changes are directly reflected in your Firestore database.
- User
so building a super app requires alot of logic like managing shops carts orders and logistic partners, is this achievable wuth the three flutterflow rowy and firestore
- Assistant
- User
the only integration that i will use is for mobile payments and google maps, nothing else
- Assistant
- User
so then instead of using rowy is there a nocode solution that i can use to build business logic that when combined with firebase and flutterflow i can do a superapp with ease
- Assistant
- User
i had bubble but creating a mobile app from bubble became a hard thing, or maybe i can use bubble to handle my backend then flutterflow for my ui.....though i dont think its possible...just wondering
- Assistant
- User
will rowy limit my api requests
- Assistant
Rowy itself is not an API management tool, but rather a user interface layer that connects directly to your Firestore database and allows you to manage it with a spreadsheet-like experience, working as part of the Firebase ecosystem.
- User
then we should do rowy and flutterflow for complex building
- Assistant
- User
- Assistant
- User
am building an MVP for now for an mvp i want to have customers shops delivery motorcycles. I just want a customer to order and get the item delivered using qr that simple. But what i want tis to have oversight so that when i will come back later to develop we can scale easily without starting a fresh...i know we might need to do the entire app in django maybe in the future but for now i need to have something going that works
- Assistant
- User
ok now lets get to business lets start with the step by step approach of the backend
- Assistant
- User
am at step 2 now that you understand the superapp help me create the collections be very detailed with the names and the type of data types to be created and any other information i need. Lets start with the collections.
- Assistant
- User
if am to add messaging where there can be comms between shops delivery agents and customers how do i address that?
- Assistant
- User
does that mean that i direct messages from a customer to a shop and also maybe to a delivery agent is covered with the explanation u gave
- Assistant
- User
As you remember we are a super app. am thinking that maybe instead of working on shop we do something simple but still in the confines of the superapp. There's one mini app called dropy water. For dropy water, the delivery agents are trucks. Trucks have owners who add them into the system and users who are drivers can use the interface to add the truck plate number they wish to be a driver for. So the request is sent to the truck owner to add the truck driver as the driver of the truck. The truck owners can also remove the driver. the truck owners can see and evaluate and manage his trucks within dropy. That means they can see if trucks have orders and also see the locations of thier trucks at any given time. They can also monitor and see it the drivers delayed in delivering thier orders. so customers will make an order of the amount of water they need in terms of liters. lets say 15000 l. there are 2 types of trucks 5000l and 1000l. The system can then allocate one 5000l truck and one 10000l truck. or it can even allocate 3 5000l trucks. depending on factors like proximity and if the other delivery trucks are currently on another job. We have express delivery and scheduled delivery. for express delivery water will be delivered within the same day. For scheduled delivery orders will start next day and also have future dates a customer can select in a calendar. also timeslots is important we have 5 time slots in a given day. 7am 9am 12pm 3pm and 5pm. so a truck driver can only get 5 jobs in a day. so all the days that driver is fully booked the system will know and return an appropriate message to the customer so that they can decide to choose a different date. this means that the drivers will have incoming job/order notifications and also a word diary where they can see all their upcoming deliveries. The customer is providing the location where they need the water and once the water is delivered they can scan the qr on the drivers pnone for the delivery to be complete. Dropy makes money through commisions from the driver jobs. like 5% so the 5% will be duducted and the rest will be sent to the truck owner account/wallet after the process is complete. customers can track ther orders in real time. I think if we are able to do this one we can do shops successfully too. sonce water has less complicated things. maybe lets have a complete data collection for the shop and water but we focus on water as the main mvp
- Assistant
- User
things like truck details photo of the truck if any wasn't captured. also now that we are using one database for the superapp, naming things should be don't properly. for example, there are orders for shops and water. the orders are very different in their own way, how to we then make sure there's minimal confusion because we will expand for sure address these concerns by doing an oversight and giving me a final copy of the entire document that I can now start setting things up. be very meticulous..
- Assistant
- User
customers should be able to top up wallets from multiple ways and also withdraw, we need to have wallets controlled at role level so that money for business is not mixed with personal money i haven't see the collection ofr wallet and how we can set it up. make it robust
- Assistant
- User
how do i create subcollectons in firestore
- Assistant
- User
when you say Refers to the userId document in the users collection. This establishes ownership of the wallet. what does this mean and how do i effect such
- Assistant
- User
there are a few things, we have water trucks and delivery agent trucks tuktuks onfoot and other delivery agents, it will be wise to nest those in a clear fashion as well, since water trucks carry water and the other trucks handly oder deliveries from shops, maybe in the fiture we also want to allow lorries to deliver sand or stones how would we handle that without causing uncessary confusion
- Assistant
- User
what if i want to add drones that will be used for deliveries
- Assistant
- User
i think am getting lost can you like give a heriachial structure of how this delivery collection and its various subcollections are supposed to be nested
- Assistant
- User
question is watertruckdetails a dument under deliveries collection or its a collection under deliveryEntity document under deliveries
- Assistant
In the provided hierarchical structure,
waterTruckDetails,tukTukDetails,motorcycleDetails, anddroneDetailsare all intended to be subcollections underneath specificdeliveryEntitydocuments within the maindeliveriescollection. EachdeliveryEntitydocument represents a particular vehicle or delivery agent, and the subcollection associated with it holds details specific to that type of delivery entity.Here's a clarification of the hierarchy:
deliveriesis a main Firestore collection that contains multiple delivery entity documents (e.g., various trucks, tuk-tuks, motorcycles, drones, etc.).
- User
is this the best of the best approach of how to do it why cant we have like vehicles as a collection?
- Assistant
- User
by doing this deliveries will be affected is there a way you can redo the entire database now in this clearer fashion so that i dont get confused while setting the entire thing up?dont mind being very specific it helps
- Assistant
- User
let me say something at this point. I like what we have done so far but i have one suggestion. I know we will build the entire superapp one day. However it is always a good practice to evaluate the future so that you don't find yourself in too much technical debt and problems that you can get out thus causing your business a fortune. That aside dropy is s supper app. ideally everything that's revolving around drop involves 3 thing the customer who needs the service, the service provider and the logistic partner or delivery personnel. so because we calling dropy a super app lets evaluate this. we have shops, parcels, rides, water, logistics, garbage, emergencies, work, export. This are the ones that are ready in terms of what we want to build moving forward. if i can explain further a customer or a dropy user can use any of the mini apps for his own use case. for example they can shop, send or receive parcels, get a ride somewhere, perform and request logistics tasks that involve picking and dropping goods that are not covered under parcels, request and automate garbage collection at thier premises of choice, ask for assistance like roadside help and medical emergencies, get people like plumbers or work personnel in ther proximity easily, sell goods internationally through the export feature. its just a shop that supports long range delivery approach. Now what is common here is getting things from point a to point b or sending things from point a to point b that's the entire idea, the rest of the things are just but the supporting system that makes the entire super app work well. That being said i would want your help in creating a dataverse now that we are using firestore and be very meticulous. This will be a robust foundation that if we ever come later we will be able to plug and play many things without problems. also if we have a Maintenace in emergencies, let that not affect shops or any other . lets go.
- Assistant