/viewer-react-sample

Simple React application with the viewer embedded into it using a custom wrapper component.

Primary LanguageJavaScriptMIT LicenseMIT

Viewer React Sample

platforms node.js npm license

This code sample is referenced by the following blog post: https://aps.autodesk.com/blog/building-simple-react-wrapper-viewer

Simple React application (bootstrapped using Create React App) with the viewer embedded into it using a custom wrapper component.

thumbnail

Development

Prerequisites

Running

  • Clone this repository, and navigate to the repo folder in terminal
  • Install dependencies: npm install
  • Go to src/index.jsx, and update the APS_ACCESS_TOKEN and APS_MODEL_URN constants with your access token and model URN
  • Run npm start to open the application in development mode
    • The app should automatically open in your browser (if not, navigate to http://localhost:3000)
    • When you make any changes to the code, the page will automatically reload

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.