Experimental Node.js server app generating glTF files for Autodesk Forge models.
- Register a Forge application
- Node.js (we recommend the Long Term Support version)
- Terminal (for example, Windows Command Prompt or macOS Terminal)
- Clone the repository
- Install dependencies:
npm install
oryarn install
- Setup environment variables:
FORGE_CLIENT_ID
- your Forge application client IDFORGE_CLIENT_SECRET
- your Forge application client secretHOST_URL
- URL where this app is running (used to build the OAuth callback URL)SERVER_SESSION_SECRET
- a secret phrase used to encrypt session cookies
- Run the server:
npm start
When using Visual Studio Code, you can specify the env. variables listed above in a .env file in this folder, and run & debug the application directly from the editor.