Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edgarbarrantes/node-drupal
This is place to put node scripts that permit interaction between node and drupal if for what ever reason one would need that...
https://github.com/edgarbarrantes/node-drupal
Last synced: about 1 month ago
JSON representation
This is place to put node scripts that permit interaction between node and drupal if for what ever reason one would need that...
- Host: GitHub
- URL: https://github.com/edgarbarrantes/node-drupal
- Owner: EdgarBarrantes
- License: gpl-3.0
- Created: 2019-06-13T17:11:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-08T15:51:39.000Z (over 5 years ago)
- Last Synced: 2024-12-30T12:49:13.854Z (about 1 month ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Drupal requests with Node
This is place to put node scripts that permit interaction between node and drupal if for what ever reason one would need that...
At the moment there are 3 modules regularly ussed in order to expose endpoints with Drupal: Rest, Json API and GraphQL.
I've had to work with the JSON API and Rest API, I've also dabled a bit with GraphQL.Note: This will probably be a place just to add scripts that I'll find useful in the future. I'm completely open pull requests.
Also: the url burnt in the code is the default url of [DrupalVM](https://github.com/geerlingguy/drupal-vm). [Thanks!](https://www.jeffgeerling.com/)
## login.js
Does what it says, logs the user in and extract information about him with a jsonapi endpoint.
## install.module
Bash script that downloads a module (from the tar.gz link from drupal modules) and extracts it, simple as that.
Composer is the way to go to downloading modules and you can use drush en to enable them, but if you're in a hurry and don't care about setting those up. You can use this and enamble the module in the interface.