https://github.com/autodesk-platform-services/aps-digital-twin
Digital Twin Demo:Various use cases in manufacturing, specifically in context of digital twins.
https://github.com/autodesk-platform-services/aps-digital-twin
autodesk-viewer digital-twin nodejs sample
Last synced: 2 months ago
JSON representation
Digital Twin Demo:Various use cases in manufacturing, specifically in context of digital twins.
- Host: GitHub
- URL: https://github.com/autodesk-platform-services/aps-digital-twin
- Owner: autodesk-platform-services
- License: mit
- Created: 2022-11-04T12:54:36.000Z (almost 3 years ago)
- Default Branch: develop
- Last Pushed: 2024-04-11T11:30:45.000Z (over 1 year ago)
- Last Synced: 2025-05-05T22:13:10.663Z (6 months ago)
- Topics: autodesk-viewer, digital-twin, nodejs, sample
- Language: JavaScript
- Homepage: https://aps-digital-twin.autodesk.io
- Size: 6.06 MB
- Stars: 17
- Watchers: 13
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Digital Twin Demo


[](http://aps.autodesk.com)
[](https://aps.autodesk.com)
[](https://aps.autodesk.com)
[Autodesk Platform Services](https://aps.autodesk.com) application demonstrating various use cases in manufacturing, specifically in context of digital twins.

## Live demo
Master branch is deployed to https://aps-digital-twin.autodesk.io.
## Development
### Prerequisites
- Node.js v10+
- [APS credentials](https://forge.autodesk.com/en/docs/oauth/v2/tutorials/create-app),
and a _URN_ of a model processed with [Model Derivative APIs](https://forge.autodesk.com/en/docs/model-derivative/v2)
- MongoDB database
- for example, use the free tier of [MongoDB Atlas](https://www.mongodb.com/cloud/atlas)
- or run it locally: https://docs.mongodb.com/manual/installation### Setup
- clone this repository
- install dependencies: `npm install`
- run server with all the required env. variables
- for example, on macOS:
```bash
export APS_CLIENT_ID=
export APS_CLIENT_SECRET=
export APS_MODEL_URN=
export MONGODB_URL=
npm start
```
- or, when using [Visual Studio Code](https://code.visualstudio.com), add this configuration to your _.vscode/launch.json_:
```json
{
"type": "node",
"request": "launch",
"name": "Launch Express Server",
"program": "${workspaceFolder}/server.js",
"env": {
"APS_CLIENT_ID": "",
"APS_CLIENT_SECRET": "",
"APS_MODEL_URN": "",
"MONGODB_URL": ""
}
}
```
- go to http://localhost:3000### Bootstrap theme
The project uses a custom Bootstrap theme. In order to customize it:
- modify _tools/bootstrap-theme/custom.scss_
- run `npm build:client` to update _public/stylesheets/bootstrap.css_
- commit the new version of the CSS file### Deployment
[](https://heroku.com/deploy)
## Sample data
The jet engine model used in the live demo can be obtained
from https://knowledge.autodesk.com/sites/default/files/file_downloads/Jet_Engine_Model.zip.## Support
For support, please contact forge.help@autodesk.com.
## License
This sample is licensed under the terms of the [MIT License](https://tldrlegal.com/license/mit-license).
Please refer to [LICENSE](LICENSE) for more details.## Written by
Petr Broz ([@ipetrbroz](https://twitter.com/ipetrbroz)), Varun Patil, APS Developer Advocates