https://github.com/petrbroz/forge-sample-app-v2
Alternative implementation of learnforge.autodesk.io's Node.js sample code.
https://github.com/petrbroz/forge-sample-app-v2
Last synced: 6 months ago
JSON representation
Alternative implementation of learnforge.autodesk.io's Node.js sample code.
- Host: GitHub
- URL: https://github.com/petrbroz/forge-sample-app-v2
- Owner: petrbroz
- Created: 2018-08-22T10:15:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-22T12:29:11.000Z (about 7 years ago)
- Last Synced: 2025-02-17T20:41:30.396Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# forge-sample-app-v2
An alternative implementation of [learnforge.autodesk.io](http://learnforge.autodesk.io/)'s
Node.js [sample code](https://github.com/Autodesk-Forge/learn.forge.viewmodels/tree/nodejs),
focusing on a couple of things:- using fewer dependencies, removing unused dependencies
- using [ES6](http://es6-features.org) features such as `let`/`const`,
fat arrow functions, destructuring, and promises
- using `async`/`await`> The code currently focuses on the server-side, so the front-end is very rudimentary.
## Quick Start
- get your [Forge](https://developer.autodesk.com/) credentials: [tutorial](http://learnforge.autodesk.io/#/account/)
- clone the git repo
- install dependencies: `npm install`
- run the server
- using Visual Studio Code:
- add the following launch configuration
```json
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/start.js",
"env": {
"DEBUG": "express:*",
"FORGE_CLIENT_ID": "",
"FORGE_CLIENT_SECRET": ""
}
}
```
- run the server via *Debug* > *Start Debugging*
- using command line
- `FORGE_CLIENT_ID= FORGE_CLIENT_SECRET= npm run start`
- go to [localhost:3000](http://localhost:3000)