what i am looking for is to connected mysql with node mysql . how can i add this package to the project ?
google it, man. Here client side.
no need to be rude here…
@zainali95 what are you trying to achieve exactly? Do you have any code yet? Are you trying to use your own provider to communicate with your mysql database?
Need more infos here to be able to help you out the right way!
i want to make a chat app using rdbms cause i can not do relationship stuff good in nosql db so thats why i am looking for something to use as a back end .I want to use remote mysql data base .i had made todo app in ionic 1 using php now i want to upgrade the level to make an app end to end java script
No need to be mixed the rudeness with the real answer. He will find the 100500 professional articles, how do it step by step. But if you want to write 100501 article, so…
What about node js? All scripting programming has its advantages and its disadvantages.
Um… Interesting. Do you know that you could use js worker, if you need to run your code in another thread? It like goroutine, doesn’t it?
However the disadvantages in Go is unique syntax ) And what about OOP?
PS thank you, I became interested in the language.
@rapropos u mean i should make RESTful api on php and on top of it i use ionic as a front-end it is so ?
I’m not a huge fan of PHP either, because I think it facilitates spaghetti. However, it’s really not my place here to impose my personal opinions about languages. I probably shouldn’t have said anything in the first place.
You are right. But I don’t think what RESTful API on PHP it’s great idea, however RESTless API will be fine on PHP.
Google for some backend example on your favorite language, there are plenty of resources out there
Make the backend API with the next PHP Frameworks:
- Symfony 2.8 or 3
- Laravel 5.2
And read about JSON Web Tokens:
Role Based Authentication in Laravel with JWT