Hi @ola23
Welcome to the wonderful world of mobile development. I have a similar app in development right now, though mine is more of a trivia game, but they are similar ideas.
You will need:
- A web host to host your website.
- The ability to create databases, like MySQL on your webhost.
- Access to a web based scripting/programming language like PHP
- Software to build a mobile app (i.e. Corona SDK) for the platforms you want to build it on.
- The appropriate merchant/developer accounts setup with each mobile app vendor you want to sell your app through (Apple iTunes, Google Play, Amazon, Barnes and Noble, etc.)
- Questions for your database.
You will have to have skills to program in Corona/Lua, PHP as well as be able to setup and built your database in MySQL (or whatever language and DB you choose to work with).
You could potentially eliminate 2 and 3 using a service like Parse or AWS (Amazon Web Services) but you’re still going to need to know PHP or your hosting language of choice to build the web version of your quiz. But to me AWS is overly complicated and Parse could end up costing you more money than self hosting.
As the poster above said, your will need to have some PHP scripts on your server that your app can call to do things like log your player in, fetch a question, receive an answer, check the validity of the answer, store the quiz results and report the results back to the app, as well as provide a final summary. You might want to look up RESTful web services for more background, but if you’re new to this, its like to a) give you a major headache or b) scare you off. Most descriptions of REST services are laced with complex computer speak.
I don’t know how much you know about how web browsers and web servers communicate, but basically you can pass parameters to the webserver on the URL:
http://somesite.com/somescript.php?username=fred&password=wilma
This is known as an HTTP GET request. In Corona you would use the network.request() API to make this call. On the server side you have to have somescript.php written that can pick off the variables, talk to your database and spew information back to you, that when received, network.request() api call will then trigger an event that you can do something with the results.
Most REST services are programmed to provide data back in several formats like XML or JSON. Since you’re going to be rolling your own, I would recommend only dealing with JSON since both PHP and Corona have simple to use functions that will take a PHP array and turn it into JSON and then turn the received JSON into a Lua table for Corona to easily use. JSON become magic at that point and you don’t really have to worry about it.
See my blog post:
http://omnigeek.robmiracle.com/2012/04/15/using-corona-sdk-with-rest-api-services/
for more details on setting this up.
Not to sound condescending, but since I don’t know your skill set, this is a very ambitious project for a starter app, in particular if you don’t know much about the server side. It has a lot of components that have to work together.
[import]uid: 19626 topic_id: 28972 reply_id: 116712[/import]