https://github.com/petrbroz/forge-industrial-construction
Autodesk Forge application demonstrating possible usage in industrial construction.
https://github.com/petrbroz/forge-industrial-construction
autodesk-forge forge-viewer
Last synced: about 1 year ago
JSON representation
Autodesk Forge application demonstrating possible usage in industrial construction.
- Host: GitHub
- URL: https://github.com/petrbroz/forge-industrial-construction
- Owner: petrbroz
- Created: 2020-01-07T13:53:41.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2022-12-10T14:08:08.000Z (over 3 years ago)
- Last Synced: 2025-03-28T20:05:53.798Z (about 1 year ago)
- Topics: autodesk-forge, forge-viewer
- Language: JavaScript
- Homepage: https://forge-industrial-construction.autodesk.io
- Size: 3.77 MB
- Stars: 15
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Forge Use Case Demo: Industrial Construction



[](http://forge.autodesk.com/en/docs/viewer/v6)
[](https://forge.autodesk.com/en/docs/data/v2)
[](https://forge.autodesk.com/en/docs/model-derivative/v2)
Autodesk Forge sample application demonstrating features relevant to the area of industrial construction.

## Live demo
Master branch is deployed to https://forge-industrial-construction.autodesk.io.
## Development
### Prerequisites
- Node.js v10+
- [Forge](https://forge.autodesk.com) application credentials
- MongoDB database
- for example, using the free tier of [MongoDB Atlas](https://www.mongodb.com/cloud/atlas)
- or running MongoDB locally: https://docs.mongodb.com/manual/installation
### Data preparation
The demo requires a Navisworks model that is split by area and discipline,
and individual NWD files in a Forge bucket to be named in the following format:
`--.nwd`
Where _facility_ can be an arbitrary string, _area_ is a number, and _discipline_
is an arbitrary string as well. An example of such filename would be:
`austin-123-structural.nwd`
> If you'd like to use a different naming of files or different extensions,
> you can modify the parsing logic in https://github.com/petrbroz/forge-industrial-construction/blob/develop/routes/data.js#L64.
### Setup & Running
- clone this repository
- install dependencies: `npm install`
- run server with all the required env. variables
- for example, on macOS:
```bash
export FORGE_CLIENT_ID=
export FORGE_CLIENT_SECRET=
export FORGE_BUCKET=
export GOOGLE_MAPS_API_KEY=
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": {
"FORGE_CLIENT_ID": "",
"FORGE_CLIENT_SECRET": "",
"FORGE_BUCKET": "",
"GOOGLE_MAPS_API_KEY": "",
"MONGODB_URL": ""
}
}
```
- go to http://localhost:3000
### Deployment
[](https://heroku.com/deploy)
## License
This sample is licensed under the terms of the [MIT License](https://tldrlegal.com/license/mit-license).
## Written by
Petr Broz ([@ipetrbroz](https://twitter.com/ipetrbroz)), Forge Partner Development Group