0.1.0 • Published 7 years ago
oss-print-sample v0.1.0
Forge SDK (OSS and Print) Sample
Introduction
This app demonstrates Forge cloud based 3D model storage, mesh preparation and mesh repair and can also provide an example of the Forge OAuth 2.0 2-legged and 3-legged login procedure.
Required setup before running the sample code
- Clone the software repository locally.
- If you have not already done so, create an app on the staging environment of the Autodesk Developers Portal.
- In the app screen, for the Callback URL field enter the fully qualified URL of a callback endpoint for the 3-legged flow. If you run this app on
your localhost, it will be
http://local.host:3000/callback
. - Install nodejs and npm if not already installed. Minimum node version is v4.0.0
- Open your
hosts
file and add this line (/etc/hosts/
for nix users,c:\Windows\System32\Drivers\etc\hosts
for windows users)127.0.0.1 local.host
- Copy the client id and client secret and setup your app with them - see info in the "Quick Start" section.
Quick Start
- Open the
server.js
file and set yourCLIENT_ID
andCLIENT_SECRET
that was provided to you when you created the app. - Run:
$ npm install
$ node server.js
- Browse to http://local.host:3000 to see the sample
0.1.0
7 years ago