agnelvishal / Condense.press

GNU General Public License v3.0
12 stars 25 forks source link

Rest api or direct database? Ajax or curl? #25

Open agnelvishal opened 5 years ago

agnelvishal commented 5 years ago

What I want is to display data from mysql database based on inputs from form. The website is live at http://condense.press/ Which of the following is a good architecture. 1) Directly interaction with database and displaying in iframe. This one is currently used at the master branch. 2) Directly interaction with database and displaying with ajax. This is done at https://github.com/agnelvishal/Condense.press/pull/22 3) Using curl to call rest api which interacts with database. This is done at https://github.com/agnelvishal/Condense.press/pull/24 4) Using ajax and rest api. 5) Using frontend frameworks like vue or angular. Expecting answers from #Hacktoberfest

agnelvishal commented 5 years ago

@LegacyStackCrash @intelliapps Have opinions?

devdadmax commented 5 years ago
  1. See my response on #23
  2. In my opinion Vue is going to be the better option for your current project goals. Vue has a much lower barrier for entry, clean cut in how it works, and you get to enjoy the benefits of a reactive DOM using it. That is to not say Angular is not a capable option; However the overhead with included features and functions of Angular may be a bit outside the scope of what is needed here currently.