{"id":15366371,"url":"https://github.com/petrbroz/forge-industrial-construction","last_synced_at":"2025-04-15T12:21:01.954Z","repository":{"id":46256799,"uuid":"232335216","full_name":"petrbroz/forge-industrial-construction","owner":"petrbroz","description":"Autodesk Forge application demonstrating possible usage in industrial construction.","archived":false,"fork":false,"pushed_at":"2022-12-10T14:08:08.000Z","size":3954,"stargazers_count":15,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-28T20:05:53.798Z","etag":null,"topics":["autodesk-forge","forge-viewer"],"latest_commit_sha":null,"homepage":"https://forge-industrial-construction.autodesk.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petrbroz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-07T13:53:41.000Z","updated_at":"2024-10-21T08:32:17.000Z","dependencies_parsed_at":"2023-01-26T07:45:44.388Z","dependency_job_id":null,"html_url":"https://github.com/petrbroz/forge-industrial-construction","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrbroz%2Fforge-industrial-construction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrbroz%2Fforge-industrial-construction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrbroz%2Fforge-industrial-construction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrbroz%2Fforge-industrial-construction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petrbroz","download_url":"https://codeload.github.com/petrbroz/forge-industrial-construction/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249067952,"owners_count":21207415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autodesk-forge","forge-viewer"],"created_at":"2024-10-01T13:18:36.774Z","updated_at":"2025-04-15T12:21:01.928Z","avatar_url":"https://github.com/petrbroz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Forge Use Case Demo: Industrial Construction\n\n![Platforms](https://img.shields.io/badge/platform-Windows|MacOS-lightgray.svg)\n![Node.js](https://img.shields.io/badge/node-%3E%3D%2010.0.0-brightgreen.svg)\n![License](https://img.shields.io/badge/license-MIT-green.svg)\n\n[![Viewer](https://img.shields.io/badge/Viewer-v6-green.svg)](http://forge.autodesk.com/en/docs/viewer/v6)\n[![Data-Management](https://img.shields.io/badge/Data%20Management-v2-green.svg)](https://forge.autodesk.com/en/docs/data/v2)\n[![Model-Derivative](https://img.shields.io/badge/Model%20Derivative-v2-green.svg)](https://forge.autodesk.com/en/docs/model-derivative/v2)\n\nAutodesk Forge sample application demonstrating features relevant to the area of industrial construction.\n\n![Thumbnail](thumbnail.gif)\n\n## Live demo\n\nMaster branch is deployed to https://forge-industrial-construction.autodesk.io.\n\n## Development\n\n### Prerequisites\n\n- Node.js v10+\n- [Forge](https://forge.autodesk.com) application credentials\n- MongoDB database\n  - for example, using the free tier of [MongoDB Atlas](https://www.mongodb.com/cloud/atlas)\n  - or running MongoDB locally: https://docs.mongodb.com/manual/installation\n\n### Data preparation\n\nThe demo requires a Navisworks model that is split by area and discipline,\nand individual NWD files in a Forge bucket to be named in the following format:\n\n`\u003cfacility\u003e-\u003carea\u003e-\u003cdiscipline\u003e.nwd`\n\nWhere _facility_ can be an arbitrary string, _area_ is a number, and _discipline_\nis an arbitrary string as well. An example of such filename would be:\n\n`austin-123-structural.nwd`\n\n\u003e If you'd like to use a different naming of files or different extensions,\n\u003e you can modify the parsing logic in https://github.com/petrbroz/forge-industrial-construction/blob/develop/routes/data.js#L64.\n\n### Setup \u0026 Running\n\n- clone this repository\n- install dependencies: `npm install`\n- run server with all the required env. variables\n  - for example, on macOS:\n    ```bash\n    export FORGE_CLIENT_ID=\u003cclient-id\u003e\n    export FORGE_CLIENT_SECRET=\u003cclient-secret\u003e\n    export FORGE_BUCKET=\u003cbucket-name\u003e\n    export GOOGLE_MAPS_API_KEY=\u003capi-key\u003e\n    export MONGODB_URL=\u003cmongodb-connection-string\u003e\n    npm start\n    ```\n  - or, when using [Visual Studio Code](https://code.visualstudio.com), add this configuration to your _.vscode/launch.json_:\n  ```json\n        {\n            \"type\": \"node\",\n            \"request\": \"launch\",\n            \"name\": \"Launch Express Server\",\n            \"program\": \"${workspaceFolder}/server.js\",\n            \"env\": {\n                \"FORGE_CLIENT_ID\": \"\u003cclient-id\u003e\",\n                \"FORGE_CLIENT_SECRET\": \"\u003cclient-secret\u003e\",\n                \"FORGE_BUCKET\": \"\u003cbucket-name\u003e\",\n                \"GOOGLE_MAPS_API_KEY\": \"\u003capi-key\u003e\",\n                \"MONGODB_URL\": \"\u003cmongodb-connection-string\u003e\"\n            }\n        }\n  ```\n- go to http://localhost:3000\n\n### Deployment\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n## License\n\nThis sample is licensed under the terms of the [MIT License](https://tldrlegal.com/license/mit-license).\n\n## Written by\n\nPetr Broz ([@ipetrbroz](https://twitter.com/ipetrbroz)), Forge Partner Development Group\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetrbroz%2Fforge-industrial-construction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetrbroz%2Fforge-industrial-construction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetrbroz%2Fforge-industrial-construction/lists"}