An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Digital Twin Demo

![Platforms](https://img.shields.io/badge/platform-windows|macOS|linux-lightgray.svg)
![Node.js](https://img.shields.io/badge/node-%3E%3D%2016.0.0-brightgreen.svg)
![License](https://img.shields.io/badge/license-MIT-green.svg)

[![Viewer](https://img.shields.io/badge/Viewer-v7-green.svg)](http://aps.autodesk.com)
[![Data-Management](https://img.shields.io/badge/Data%20Management-v2-green.svg)](https://aps.autodesk.com)
[![Model-Derivative](https://img.shields.io/badge/Model%20Derivative-v2-green.svg)](https://aps.autodesk.com)

![Intermediate](https://img.shields.io/badge/Level-Intermediate-blue.svg)

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

![thumbnail](thumbnail.png)

## 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

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](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