Skip to content

Hubs Browser (Node.js):Autodesk Platform Services application built by following the Hubs Browser tutorial from https://aps.autodesk.com/tutorials.

License

Notifications You must be signed in to change notification settings

aecoder-br/aps-hubs-browser-nodejs

 
 

Repository files navigation

Hubs Browser (Node.js)

platforms node.js npm license

Autodesk Platform Services application built by following the Hubs Browser tutorial from https://tutorials.autodesk.io.

thumbnail

Development

Prerequisites

We recommend using Visual Studio Code which, among other benefits, provides an integrated terminal as well.

Setup & Run

  • Clone this repository: git clone https://github.com/autodesk-platform-services/aps-hubs-browser-nodejs
  • Go to the project folder: cd aps-hubs-browser-nodejs
  • Install Node.js dependencies: npm install
  • Open the project folder in a code editor of your choice
  • Create a .env file in the project folder, and populate it with the snippet below, replacing <client-id> and <client-secret> with your APS Client ID and Client Secret, and <secret-phrase> with an arbitrary string:
APS_CLIENT_ID="<client-id>"
APS_CLIENT_SECRET="<client-secret>"
APS_CALLBACK_URL="http://localhost:8080/api/auth/callback" # URL your users will be redirected to after logging in with their Autodesk account
SERVER_SESSION_SECRET="<secret-phrase>" # phrase used to encrypt/decrypt server session cookies

For applications deployed to a custom domain, the callback URL will be 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://aps.autodesk.com/myapps as well.

  • Run the application, either from your code editor, or by running npm start in terminal
  • Open http://localhost:8080

When using Visual Studio Code, you can run & debug the application by pressing F5.

Troubleshooting

Please contact us via https://aps.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

Hubs Browser (Node.js):Autodesk Platform Services application built by following the Hubs Browser tutorial from https://aps.autodesk.com/tutorials.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.4%
  • CSS 11.8%
  • HTML 8.8%