{"id":20382657,"url":"https://github.com/autodesk-forge/viewer-nodejs-model.as.a.service","last_synced_at":"2025-08-31T14:41:58.444Z","repository":{"id":26276421,"uuid":"29723868","full_name":"Autodesk-Forge/viewer-nodejs-model.as.a.service","owner":"Autodesk-Forge","description":"Viewer workflow and learning guide: Enables you to upload models and test client APIs live","archived":false,"fork":false,"pushed_at":"2018-09-17T02:56:43.000Z","size":201,"stargazers_count":9,"open_issues_count":1,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-12T08:53:54.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://still-spire-1606.herokuapp.com/","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/Autodesk-Forge.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}},"created_at":"2015-01-23T08:36:04.000Z","updated_at":"2024-01-05T01:48:14.000Z","dependencies_parsed_at":"2022-08-26T21:12:51.248Z","dependency_job_id":null,"html_url":"https://github.com/Autodesk-Forge/viewer-nodejs-model.as.a.service","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/Autodesk-Forge%2Fviewer-nodejs-model.as.a.service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk-Forge%2Fviewer-nodejs-model.as.a.service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk-Forge%2Fviewer-nodejs-model.as.a.service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk-Forge%2Fviewer-nodejs-model.as.a.service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Autodesk-Forge","download_url":"https://codeload.github.com/Autodesk-Forge/viewer-nodejs-model.as.a.service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543882,"owners_count":21121838,"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":[],"created_at":"2024-11-15T02:18:30.767Z","updated_at":"2025-04-12T08:53:59.617Z","avatar_url":"https://github.com/Autodesk-Forge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Model as a Service Workflow Sample\n\n[![LMV](https://img.shields.io/badge/Viewer-v1.2.23-green.svg)](http://developer-autodesk.github.io/)\n\n## Description\n\n### Thumbnail\n![thumbnail](/thumbnail.png)\n\nA sample demonstrating the workflow and provide a tool to learn \u003cb\u003eViewer\u003c/b\u003e quickly.\n\nLive demo: [http://still-spire-1606.herokuapp.com](http://still-spire-1606.herokuapp.com/)\n\n##Dependencies\n\nThis sample is written in Javascript, hosted on a node.js web server.\n\n# Setup\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### Run locally\n\nInstall [NodeJS](https://nodejs.org).\n\nClone this project or download it. 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 https://github.com/Developer-Autodesk/viewer-nodejs-model.as.a.service\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    npm run dev\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    npm run dev\n\nOpen the browser: [http://localhost:3000](http://localhost:3000).\n\n### Deploy on Heroku\n\nTo deploy this application to Heroku, the **Callback URL** must use your .herokuapp.com address. After clicking on the button below, at the Heroku Create New App page, set your Client ID \u0026 Secret and the correct callback URL.\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\nWatch [this video](https://www.youtube.com/watch?v=Oqa9O20Gj0c) on how deploy this sample to Heroku.\n\n## License\n\nThat samples are licensed under the terms of the [MIT License](http://opensource.org/licenses/MIT). Please see the [LICENSE](LICENSE) file for full details.\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##Written by\n\nWritten by [Daniel Du](http://adndevblog.typepad.com/cloud_and_mobile/daniel-du.html)   (Forge Partner Development)\n\nUpdated by Augusto Goncalves ([@augustomaia](https://twitter.com/augustomaia))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautodesk-forge%2Fviewer-nodejs-model.as.a.service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautodesk-forge%2Fviewer-nodejs-model.as.a.service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautodesk-forge%2Fviewer-nodejs-model.as.a.service/lists"}