Skip to content

Autodesk-Forge/forge-hubs-browser-nodejs

Repository files navigation

forge-hubs-browser-nodejs

platforms node.js npm license

Simple Autodesk Forge application built by following the Hubs Browser tutorial from https://forge-tutorials.autodesk.io.

screenshot

Development

Prerequisites

Setup & Run

  • Clone this repository
  • Install dependencies: yarn install or npm install
  • Setup environment variables:
    • FORGE_CLIENT_ID - your Forge application client ID
    • FORGE_CLIENT_SECRET - your Forge application client secret
    • FORGE_CALLBACK_URL - URL for your users to be redirected to after they successfully log in with their Autodesk account
      • For local development, the callback URL is http://localhost:8080/api/auth/callback
      • For applications deployed to a custom domain, the callback URL is http://<your-domain>/api/auth/callback or https://<your-domain>/api/auth/callback
      • Do not forget to update the callback URL for your application in https://forge.autodesk.com/myapps as well
    • SERVER_SESSION_SECRET - arbitrary phrase used to encrypt/decrypt server session cookies
  • Run the server: yarn start or 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.

Troubleshooting

Please contact us via https://forge.autodesk.com/en/support/get-help.

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published