How to build a chat app with flutter and mysql? - mysql

I am new to flutter and I want to transfer a chat website into an app but the problem that it depends on a mysql database and I have no experience in it, So I searched for ways to build it but didn't find anything, all the tutorials are about firebase so I need your help.

the best way for you that is used to socket.io plugins and use from nodejs for server-side

https://www.youtube.com/watch?v=F4Q6lEhmwCY
This above youtube link would help you with the SQL CRUD operations form flutter app.
You will have to create your own way querying the SQL database and also see if you want an end to end communications then use SQL lite and which according to me is better than a SQL database.

Related

How to use Flutter, MongoDB and Docker together in app development?

With a colleague of mine, we're building an app written in Dart with Flutter on Android Studio. We've arrived at the point where we need to start integrating a database to collect and send user filled data, and so we chose MongoDB which will be integrated into Docker so that our app is ready to function on multiple devices. Since we will have many users and each of them will be entering their own data, we have a lot of parameters to take into account so we're creating a JSON skeleton to map out the structure of what data goes where. The obstacle is we have no clue what the best way is to approach MongoDB-Docker integration with our Android Studio code, as it is our first time using MongoDB and Docker. Any good tips or resources that could put us on the right track ? Thank you
Hi your real question should be : what will you use in beetween those two ? You should (I guess) create an API to simplify and securise your user-DB interactions.
If you're not familiar with those principles a quick reasearch should help.
If you want to continue without any API, you should put many effort into having a VERY clean code as your app will have a lot of information inside its source code and proceed to create a documentation. Also you could use an ORM.

Reading from a databse in AngularJS

My question is a simple enough one but I can't quite seem to find a good tutorial on it. Maybe I am not being specific enough with what I am asking but I can't really type an explanation into google and expect an answer.
So here is my question;
I currently have a website up and running on a hosting site and this hosting site allows me to have a database up on their server as well.
So my question is how do I read data from this database that I have setup using phpAdmin? Also, it is a mySQL database.
The website will be acting like a review site built I just want to use it to learn web development as well. So What I am trying to do it read articles that I will be saving in the database so I can display them on my website.
Any help or advice in regard to this is much appreciated.
Thanks in advance,
Cylon.
you cant read directly from a Database using AngularJS or any Client-side framework , you need a back-end / server-side language such as PHP ,C# ,Java..
to connect to your MySql ,MSSql... ,
so in your case your need to create PHP script which will connect to the Database and provide an interface you can access with (GET , POST methods ) using AngularJS ($http.post("url"...)
for a best practice (if you want) the Data should be in JSON format.

Github Projects Nodejs Web Api

at the moment I'm trying to get into node.js, especially as a web-api with dedicated functions of getting informations from a database.
I use Sequelize on a MySQL-Database, with Sequelize-auto. The database I am using is the example database Sakila. For the web service I will use Express.
I would like to know, if somebody knows good, well-structured GitHub-Projects, that use the same or at least almost the same technologies I mentioned and that I can use as a reference.
Best regards and thanks, Anton.
Sequelize have an example project
https://github.com/sequelize/express-example

Kendo UI Mobile & MySQL database connectivity

I am currently building a mobile application with Kendo UI which I intend to run through phonegap and deploy to some App Stores in the near future.
I have set out the layout in HTML, CSS & JS using the Kendo framework and everything is looking good and in place.
My app will talk to an existing MySQL database which already has lots of data in it. I am wanting to pull data out of the database and display it in my application. Can anybody with any experience with Kendo UI, phonegap and app deployment help me get started as the Kendo documentation for this is not very clear.
Thanks in advance!
Your mysql database with lots of data is probably on a server somewhere.
Most servers that have mysql will probably have php installed.
So the easiest thing you can do is use some of the php mvc frameworks out there to get the data from the db, convert that into json and send that to your kendo-phonegap app.
You can read more about this approach here.
Hope this helps.
I think you need to use some wrappers. Kendo UI will not just take the data from your database.
For example setup the apache http server with php. The best way would be to get some lightweight framework which would handle the database for you. From client side with Kendo you will be querying your server.

web service json mssql kendo ui connection... how to

Im new at web programming and I have to make a website which will get the data from a mssql server. The thing I tried is just write SQL commands and get the data but I need to change the settings of internet explorer so it did not work. Now I want to write a web service to get the data form my server and formats the data like .json and then I need to use that service to display my list on my website. What is your suggestion where should I begin to work ? And Im using KendoUI for my website.
The easiest and probably most used approach nowadays is to use an ORM - most common EntityFramework for .NET developers, then in your web service you just return the objects and they are automatically serialized.
Search the web for some tutorials.