0.1.0 • Published 7 years ago

oss-print-sample v0.1.0

Weekly downloads
2
License
ISC
Repository
-
Last release
7 years ago

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

  1. Clone the software repository locally.
  2. If you have not already done so, create an app on the staging environment of the Autodesk Developers Portal.
  3. 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.
  4. Install nodejs and npm if not already installed. Minimum node version is v4.0.0
  5. 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
  6. 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 your CLIENT_ID and CLIENT_SECRET that was provided to you when you created the app.
  • Run:
$ npm install
$ node server.js
0.1.0

7 years ago