salvadordeveloper / flutter-tiktok

A TikTok Clone in Flutter and Firebase.
MIT License
1.08k stars 396 forks source link

Use local database instead of Firebase #1

Closed rayad closed 4 years ago

rayad commented 4 years ago

Hi,

First of all you have done a great job to creating this as i have found many TikTok UI clone but they are just using background image. You have created a complete project.

I am struggling to use this with my local database which is MySql.

Also i didn't found much documentation for this. Youtube video was also smaller.

Can you put some documentations or help to implement it with other database instead of Firebase.

salvadordeveloper commented 4 years ago

Hi! Thanks for being interested in the project. First, you can implement MySql but you need to know how to do it because it is not possible to connect directly to Mysql from flutter, you need to create an API server, can be NodeJS, Laravel or whatever you prefer. And then you simply make the request from the app(You also need to know how to make an HTTP request in flutter. As you say I do not publish a tutorial or something similar is only a demo of the project and the source code, I'm currently working to add more features to the app, in the future I going to add the connection with different backend.

rayad commented 4 years ago

Thanks for the update. I will be waiting for newest version. I am using MySQL and WAMP server with Flutter but haven't used BLOC pattern in the past. I am still working on your API code. So that I can incorporate it.

My other modules are almost ready now just need to work on video play thing.

SivaramNalliboyana commented 4 years ago

Hello how did you connect to mysql, I cant do it. Is there any packagae

digitpk commented 4 years ago

Maybe this will help you. https://pub.dev/packages/mysql1