Quiz Application with mixed Questions fetched from Database


#1

I want to build a Quiz Application on Ionic 3 using Php Web services from MySQL database. My Question is that how to show only one question from url on a page and after its answere next question to be present on new page or to reopen that page with new question. Need Help !


#2

Would you not just store a payload of questions on the device itself?


#3

Can you please elaborate ? An example would be awsome :grinning:


#4

Build an API that returns a question (and its answer). When it was answered, request the next one. Continue until no questions are left. (You will have to find a way to note which questions the user already saw - you can do that both on backend and app)


#5

Just for you (just now)


#6

Thanks i am looking at it :slight_smile:


#7

Don’t forget to like or mark as solution


#8

Well that was great (y) can you do something like that for data that is coming through Json URL ?


#9

If you update your repo I’ve added in a pretend fetch of data in the constructor.

You can see it’ll parse json data as objects into the ‘questions’ array.

And I’ve even thrown up a please wait modal for kicks :slight_smile:


#10

Sorry it might be annoying but where to put my web service ?