{"id":22872005,"url":"https://github.com/yiskang/forge-viewhubmodels-nodejs-svf2","last_synced_at":"2026-04-24T20:35:38.602Z","repository":{"id":84581019,"uuid":"327305121","full_name":"yiskang/forge-viewhubmodels-nodejs-svf2","owner":"yiskang","description":"Learn Forge Tutorial: View your BIM 360 \u0026 Fusion models using 3-legged OAuth. Available in Nodejs with OTG/SVF2 support","archived":false,"fork":false,"pushed_at":"2022-03-14T09:30:30.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-16T14:17:20.296Z","etag":null,"topics":["autodesk-bim360","autodesk-data-management","autodesk-forge","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yiskang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-06T12:29:20.000Z","updated_at":"2021-08-13T02:05:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbe94f3f-eaaf-4745-9164-56fd785a0ca9","html_url":"https://github.com/yiskang/forge-viewhubmodels-nodejs-svf2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yiskang/forge-viewhubmodels-nodejs-svf2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiskang%2Fforge-viewhubmodels-nodejs-svf2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiskang%2Fforge-viewhubmodels-nodejs-svf2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiskang%2Fforge-viewhubmodels-nodejs-svf2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiskang%2Fforge-viewhubmodels-nodejs-svf2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiskang","download_url":"https://codeload.github.com/yiskang/forge-viewhubmodels-nodejs-svf2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiskang%2Fforge-viewhubmodels-nodejs-svf2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32240090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-bim360","autodesk-data-management","autodesk-forge","nodejs"],"created_at":"2024-12-13T13:32:34.560Z","updated_at":"2026-04-24T20:35:38.581Z","avatar_url":"https://github.com/yiskang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# forge.tutorial.viewhubmodels - Nodejs\n\n[![Node.js](https://img.shields.io/badge/Node.js-8.0-blue.svg)](https://nodejs.org/)\n[![npm](https://img.shields.io/badge/npm-4.0-blue.svg)](https://www.npmjs.com/)\n![Platforms](https://img.shields.io/badge/platform-windows%20%7C%20osx%20%7C%20linux-lightgray.svg)\n[![License](http://img.shields.io/:license-mit-blue.svg)](http://opensource.org/licenses/MIT)\n\n[![oAuth2](https://img.shields.io/badge/oAuth2-v1-green.svg)](http://developer.autodesk.com/)\n[![Data-Management](https://img.shields.io/badge/Data%20Management-v1-green.svg)](http://developer.autodesk.com/)\n[![OSS](https://img.shields.io/badge/OSS-v2-green.svg)](http://developer.autodesk.com/)\n[![Model-Derivative](https://img.shields.io/badge/Model%20Derivative-v2-green.svg)](http://developer.autodesk.com/)\n\n![Intermediate](https://img.shields.io/badge/Level-Basic-green.svg)\n\n# Description\n\nThis sample is part of the [Learn Forge](http://learnforge.autodesk.io) tutorials.\n\n# Setup\n\n## Prerequisites\n\n1. **Forge Account**: Learn how to create a Forge Account, activate subscription and create an app at [this tutorial](http://learnforge.autodesk.io/#/account/). \n2. **Visual Code**: Visual Code (Windows or MacOS).\n3. **JavaScript ES6** syntax for server-side\n4. **JavaScript** basic knowledge with **jQuery**\n\n\nFor using this sample, you need an Autodesk developer credentials. Visit the [Forge Developer Portal](https://developer.autodesk.com), sign up for an account, then [create an app](https://developer.autodesk.com/myapps/create). For this new app, use **http://localhost:3000/api/forge/callback/oauth** as Callback URL, although is not used on 2-legged flow. Finally take note of the **Client ID** and **Client Secret**.\n\n## Running locally\n\nInstall [NodeJS](https://nodejs.org), version 8 or newer.\n\nClone this project or download it (this `nodejs` branch only). It's recommended to install [GitHub desktop](https://desktop.github.com/). To clone it via command line, use the following (**Terminal** on MacOSX/Linux, **Git Shell** on Windows):\n\n    git clone -b nodejs https://github.com/Autodesk-Forge/learn.forge.viewhubmodels.git\n\nTo run it, install the required packages, set the enviroment variables with your client ID \u0026 secret and finally start it. Via command line, navigate to the folder where this repository was cloned and use the following:\n\nMac OSX/Linux (Terminal)\n\n    npm install\n    export FORGE_CLIENT_ID=\u003c\u003cYOUR CLIENT ID FROM DEVELOPER PORTAL\u003e\u003e\n    export FORGE_CLIENT_SECRET=\u003c\u003cYOUR CLIENT SECRET\u003e\u003e\n    export FORGE_CALLBACK_URL=\u003c\u003cYOUR CALLBACK URL\u003e\u003e\n    npm start\n\nWindows (use **Node.js command line** from Start menu)\n\n    npm install\n    set FORGE_CLIENT_ID=\u003c\u003cYOUR CLIENT ID FROM DEVELOPER PORTAL\u003e\u003e\n    set FORGE_CLIENT_SECRET=\u003c\u003cYOUR CLIENT SECRET\u003e\u003e\n    set FORGE_CALLBACK_URL=\u003c\u003cYOUR CALLBACK URL\u003e\u003e\n    npm start\n\nOpen the browser: [http://localhost:3000](http://localhost:3000).\n\n## Packages used\n\nThe [Autodesk Forge](https://www.npmjs.com/package/forge-apis) packages is included by default. Some other non-Autodesk packaged are used, including [express](https://www.npmjs.com/package/express) and [multer](https://www.npmjs.com/package/multer) for upload.\n\n# Further Reading\n\nDocumentation:\n\n- [BIM 360 API](https://developer.autodesk.com/en/docs/bim360/v1/overview/) and [App Provisioning](https://forge.autodesk.com/blog/bim-360-docs-provisioning-forge-apps)\n- [Data Management API](https://developer.autodesk.com/en/docs/data/v2/overview/)\n- [Viewer](https://developer.autodesk.com/en/docs/viewer/v6)\n\n### Tips \u0026 Tricks\n\nFor local development/testing, consider use [nodemon](https://www.npmjs.com/package/nodemon) package, which auto restart your node application after any modification on your code. To install it, use:\n\n    sudo npm install -g nodemon\n\nThen, instead of **npm run dev**, use the following:\n\n    npm run nodemon\n\nWhich executes **nodemon server.js --ignore www/**, where the **--ignore** parameter indicates that the app should not restart if files under **www** folder are modified.\n\n### Troubleshooting\n\nAfter installing Github desktop for Windows, on the Git Shell, if you see a ***error setting certificate verify locations*** error, use the following:\n\n    git config --global http.sslverify \"false\"\n\n## License\n\nThis sample is licensed under the terms of the [MIT License](http://opensource.org/licenses/MIT). Please see the [LICENSE](LICENSE) file for full details.\n\n## Written by\n\nPetr Broz [@petrbroz](https://twitter.com/petrbroz), [Forge Partner Development](http://forge.autodesk.com)\n\nEason Kang [@yiskang](https://twitter.com/yiskang), [Forge Partner Development](http://forge.autodesk.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiskang%2Fforge-viewhubmodels-nodejs-svf2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiskang%2Fforge-viewhubmodels-nodejs-svf2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiskang%2Fforge-viewhubmodels-nodejs-svf2/lists"}