An example server-to-server Node.js application that highlights Adobe Experience Manager's GraphQL APIs and the AEM Headless Client for Node.js. This application is simple: it queries AEM for WKND adventure data, and prints out the JSON response. Typically server-to-server applications will retrieve data from AEM and sync it with other systems, or generate some other form of output.
A corresponding tutorial is available where you can learn how to setup and run the application to query data from an AEM environment using GraphQL.
-
Clone this git repository
-
Run the app from the command line. You will need an AEM as a Cloud Service host (for example,
https://publish-p123-e789.adobeaemcloud.com
) and optionally an AEM as a Clouds Service service credentials file if the GraphQL requests require authorization.$ cd aem-guides-wknd-graphql/server-to-server-app $ npm install $ node index.js AEM_HOST or $ node index.js AEM_HOST RELATIVE_PATH_TO_SERVICE_CREDENTIALS
AEM as a Cloud Service | Sample Content | Node | npm |
---|---|---|---|
Continual | WKND Shared 2.0+ or WKND Site 2.0+ | 10+ | 6+ |