1

I have a courses site where students take online courses and then take exams and get their certificates.

The courses content type has an entity reference to "Lessons" content type which has a further reference to Exams content type ( Webform).

The progress of user is being stored in a custom table in database.

Now we need to build a native mobile app with login / registration, and taking courses and exams features. (user registration / login and progress should be synced with site database)

Any ideas to start with? Custom API, web services or reading and writing to database directly.

thanks

1

I believe services will fulfill your needs. You can try with Services module.

You may require to customize the module for your custom made features in the site.

2
1

I would recommend DrupalGap for this situation. With it, and a few contrib modules, you'll have an app that can display and submit Webforms. Here are the key players in this scenario:

DrupalGap has built in support user login/logout/registration, and with the DrupalGap Webform module, it adds support for the display and submission of webforms in various application environments (mobile apps, web-apps, headless). The scenario you describe is attainable with probably 10 lines of custom code/terminal-commands or less.

2
  • can i install DrupalGap on top of my existing running website? Or i should have thought about DrupalGap when the website was being built.
    – brainHax
    Feb 18 '16 at 10:14
  • On the Drupal side, DrupalGap is just a module so you can enable/disable/uninstall as needed. It's designed to work with brand new or pre-existing Drupal sites, and your app's source code remains separate from Drupal should you want to continue or abort mission. Feb 18 '16 at 15:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.