With DrupalGap, we can easily create a Headless Drupal application. This means we can let Drupal run "in the background", and the user experience can be handled entirely by the application.
From here we'd install Drupal in a sub directory, for example:
Now we can install the DrupalGap SDK in the root folder of our website:
Then open the
settings.js file in the DrupalGap SDK:
Then set the site path to the Drupal directory:
Drupal.settings.site_path = 'http://localhost/headless/drupal';
And set the mode for a web app:
drupalgap.settings.mode = 'web-app';
Then we are up and running with a headless Drupal application!