aps-simple-viewer-nodejs
aps-simple-viewer-nodejs copied to clipboard
Simple Viewer (Node.js):Autodesk Platform Services application built by following the Simple Viewer tutorial from https://tutorials.autodesk.io.
Simple Viewer (Node.js)
Autodesk Platform Services application built by following the Simple Viewer tutorial from https://tutorials.autodesk.io.
![]()
Development
Prerequisites
- APS credentials
- Node.js (Long Term Support version is recommended)
- Command-line terminal such as PowerShell or bash (should already be available on your system)
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-simple-viewer-nodejs - Go to the project folder:
cd aps-simple-viewer-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:
APS_CLIENT_ID="<client-id>"
APS_CLIENT_SECRET="<client-secret>"
- Run the application, either from your code editor, or by running
npm startin 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://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.