Skip to content

Data Exchange GraphQL sample: Demonstrate some basic GraphQL queries for Data Exchange

License

Notifications You must be signed in to change notification settings

autodesk-platform-services/aps-dx-samples-nodejs

Repository files navigation

Data Exchange Samples in NodeJs

platforms node.js npm license

Description

The following samples showcase some fundamental GraphQL queries for Data Exchange, which are used to implement the following workflows:

thumbnail

Setup

Prerequisites

Running locally

Clone this project or download it. It's recommended to install GitHub desktop. To clone it via command line, use the following (Terminal on MacOSX/Linux, Git Shell on Windows):

git clone https://github.com/autodesk-platform-services/aps-dx-samples-nodejs.git

Specify the following environment variables:

Mac OSX/Linux (Terminal)

npm install
export APS_CLIENT_ID=<<YOUR CLIENT ID FROM DEVELOPER PORTAL>>
export APS_CLIENT_SECRET=<<YOUR CLIENT SECRET>>
export APS_CALLBACK_URL=http://localhost:8080/api/auth/callback
export SERVER_SESSION_SECRET=<<PUT HERE SOMETHING RANDOM>>
npm start

Windows

npm install
set APS_CLIENT_ID =<<YOUR CLIENT ID FROM DEVELOPER PORTAL>>
set APS_CLIENT_SECRET =<<YOUR CLIENT SECRET>>
set APS_CALLBACK_URL=http://localhost:8080/api/auth/callback
set SERVER_SESSION_SECRET=<<PUT HERE SOMETHING RANDOM>>
npm start

Troubleshooting

General APS Support form.

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for more details.

Written by

  • Denis Grigor, Developer Advocate
  • Suraj Kumar, Software Developer

About

Data Exchange GraphQL sample: Demonstrate some basic GraphQL queries for Data Exchange

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published