A GraphQL wrapper server/client demo around Autodesk Forge Web API's
To run this samples, you need your own Forge API credentials:
-
Visit the Forge Developer Portal, sign up for an account
-
For this new App, you can use http://localhost:3000/api/forge/callback/oauth as Callback URL.
-
Take note of the Client ID and Client Secret, those are your API keys that must remain hidden
-
Install the latest release of NodeJS
-
Clone this or download this project. It's recommended to install a git client such as GitHub desktop or SourceTree
-
To clone it via command line, use the following (Terminal on MacOSX/Linux, Git Shell on Windows):
git clone https://github.com/leefsmp/forge-ql
In development, the client is dynamically built by the webpack-dev-middleware, so just run:
* `npm install` *(downloads project dependencies locally)*
* `NODE_ENV=development HOT_RELOADING=true npm start` *(builds client on the fly and run server)*
* open [http://localhost:3000](http://localhost:3000) in your favorite browser
In production, the client requires a build step, so run:
* `npm install` *(not required if you already run at previous step)*
* `npm run build-prod && NODE_ENV=production npm start` *(builds client and run server)*
* open [http://localhost:3000](http://localhost:3000) in your favorite browser
- To see your project open your browser
http://localhost:3000
Written by Philippe Leefsma
for Forge Partner Development - http://forge.autodesk.com