Angular Drupal8 & 7 API Explorer
####This project shows the whole functionality of the Angular Drupal7 Services lib. See all parts in action or copy code into you own projects.
You should also checkout the WEB DEMO of this repo.
- Check out the project
$ git clone https://github.com/BioPhoton/ng-drupal-services-tests-with-ng.git [project name]
Check that the current user have write permissions to the newly created folder. Then cd into the folder and check out the dev branch
$ cd [project_name] $ git checkout master
- Setup node_modules
In the ckecked out branch there is a package.json file
which contains all required node modules required for the gulp tasks.
$ npm install
- Load bower lib's
As all the thrid party libs are not in the repository we have to load them over bower
$ bower update
//drupal services configurations DrupalApiConstant.drupal_instance = 'http://www.your.domain/'; DrupalApiConstant.api_endpoint += 'v1/'; // "api/v1/"
Now you are ready to test it. Run following command:
$ gulp webserver
- Setup a fresh Drupal installation
- install following Modules:
- Go to admin/structure/services/add and import the preconfigured service
- Go to admin/config/services/cors and paste following into the textarea