https://github.com/autodesk-platform-services/aps-simple-viewer-nodejs
Autodesk Platform Services application built by following the Simple Viewer tutorial from https://aps.autodesk.com/getting-started.
https://github.com/autodesk-platform-services/aps-simple-viewer-nodejs
autodesk-data-management autodesk-model-derivative autodesk-viewer nodejs sample
Last synced: over 1 year ago
JSON representation
Autodesk Platform Services application built by following the Simple Viewer tutorial from https://aps.autodesk.com/getting-started.
- Host: GitHub
- URL: https://github.com/autodesk-platform-services/aps-simple-viewer-nodejs
- Owner: autodesk-platform-services
- License: mit
- Created: 2022-11-02T20:30:27.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2024-12-12T12:08:51.000Z (over 1 year ago)
- Last Synced: 2025-04-02T07:08:07.137Z (over 1 year ago)
- Topics: autodesk-data-management, autodesk-model-derivative, autodesk-viewer, nodejs, sample
- Language: JavaScript
- Homepage: https://aps-simple-viewer-nodejs.autodesk.io
- Size: 5.81 MB
- Stars: 43
- Watchers: 13
- Forks: 45
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Viewer (Node.js)

[](https://nodejs.org)
[](https://www.npmjs.com/)
[](https://opensource.org/licenses/MIT)
[Autodesk Platform Services](https://aps.autodesk.com) application built by following
the [Simple Viewer](https://tutorials.autodesk.io/tutorials/simple-viewer/) tutorial
from https://tutorials.autodesk.io.

## Development
### Prerequisites
- [APS credentials](https://forge.autodesk.com/en/docs/oauth/v2/tutorials/create-app)
- [Node.js](https://nodejs.org) (Long Term Support version is recommended)
- Command-line terminal such as [PowerShell](https://learn.microsoft.com/en-us/powershell/scripting/overview)
or [bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell)) (should already be available on your system)
> We recommend using [Visual Studio Code](https://code.visualstudio.com) which, among other benefits,
> provides an [integrated terminal](https://code.visualstudio.com/docs/terminal/basics) 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 `` and `` with your APS Client ID and Client Secret:
```bash
APS_CLIENT_ID=""
APS_CLIENT_SECRET=""
```
- Run the application, either from your code editor, or by running `npm start` in terminal
- Open http://localhost:8080
> When using [Visual Studio Code](https://code.visualstudio.com), 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](http://opensource.org/licenses/MIT).
Please see the [LICENSE](LICENSE) file for more details.