Fellow hackers,
I'd love to get some advice on how to go about building an app which continuously keeps the front end data in sync with the backend using a Django backend stack. Notion is an example of such an app: any changes the user makes are immediately saved to the backend and are seen by other teammates.
I understand this will have to use sockets but would love to have a bit more details on the tech layer (eg are there any 3rd party libraries that make it easier).
I'm aware of Django Channels but have the impression that it's not a very popular library, please correct me if I'm wrong.
Found Twilio Sync
https://www.twilio.com/sync/api
Looks like it's exactly what I'm looking for 🤗
Check out Firebase. Indie Hackers is built on it.
You can talk to it on the backend:
https://firebase.google.com/docs/reference/admin/python
Then you can build a real-time app on the frontend:
https://firebase.google.com/docs/web/setup
I personally use it for side projects and production apps alike.
Could you briefly explain the flow of the app if using firebase? I currently use postgres db, does it mean I would need to change to firebase realtime db (no go for me as it's a huge job)?
I guess what I need is a messaging layer that keeps data in sync.
E.g. if user edits some form in the frontend, frontend hits my server API which makes the change in the db then hits the 3rd party messaging server which notifies the front end. Does that make sense?
This comment was deleted 7 years ago
Makes more sense. I'll check these, thanks a lot
This comment was deleted 7 years ago
I use rabbit in the backend, but I don't think it has a frontend client does it?
This comment was deleted 7 years ago
Will have a look, thanks!