https://github.com/petrbroz/forge-hubs-browser-nodejs
Autodesk Forge sample app showing the basic viewing capabilities.
https://github.com/petrbroz/forge-hubs-browser-nodejs
Last synced: 6 months ago
JSON representation
Autodesk Forge sample app showing the basic viewing capabilities.
- Host: GitHub
- URL: https://github.com/petrbroz/forge-hubs-browser-nodejs
- Owner: petrbroz
- License: mit
- Created: 2021-08-18T13:07:43.000Z (about 4 years ago)
- Default Branch: develop
- Last Pushed: 2022-08-26T16:26:23.000Z (about 3 years ago)
- Last Synced: 2025-02-17T20:41:25.433Z (8 months ago)
- Language: JavaScript
- Size: 647 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# forge-hubs-browser-nodejs

[](https://nodejs.org)
[](https://www.npmjs.com/)
[](https://opensource.org/licenses/MIT)Simple [Autodesk Forge](https://forge.autodesk.com) application built by following
the [Hubs Browser](https://forge-tutorials.autodesk.io/tutorials/hubs-browser/) tutorial
from https://forge-tutorials.autodesk.io.
## Development
### Prerequisites
- [Forge application](https://forge.autodesk.com/en/docs/oauth/v2/tutorials/create-app)
- Provisioned access to [BIM 360 Docs](https://forge.autodesk.com/en/docs/bim360/v1/tutorials/getting-started/manage-access-to-docs/)
or Autodesk Construction Cloud
- [Node.js](https://nodejs.org) (we recommend the Long Term Support version)
- Terminal (for example, [Windows Command Prompt](https://en.wikipedia.org/wiki/Cmd.exe)
or [macOS Terminal](https://support.apple.com/guide/terminal/welcome/mac))### 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:///api/auth/callback` or `https:///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](https://code.visualstudio.com),
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](http://opensource.org/licenses/MIT).
Please see the [LICENSE](LICENSE) file for more details.