You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-22Lines changed: 29 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,71 +19,78 @@ This sample does not includes the workflow of uploading models. It depends on ot
19
19
## Setup/Usage Instructions
20
20
Use your own credentials and upload models on your account
21
21
22
-
*Apply your own credentials from [http://developer.autodesk.com](http://developer.autodesk.com)
23
-
*Replace the place holder with your own keys in credentials.js, line #23 and #25 <br />
22
+
*Apply your own credentials from [http://developer.autodesk.com](http://developer.autodesk.com)
23
+
*Replace the place holder with your own keys in credentials.js, line #23 and #25 <br />
24
24
```
25
25
credentials.ClientId = '<replace with clientId>';
26
26
27
27
credentials.ClientSecret = '<replace with clientSecret>';
28
28
```
29
-
* Upload one of your model in your account and get its URN using other workflow sample,for example, [this workflow sample in .net winform application](https://github.com/Developer-Autodesk/workflow-dotnet-winform-view.and.data.api/) if you are using windows or [this workflow sample in Mac OS Swift](https://github.com/Developer-Autodesk/workflow-macos-swift-view.and.data.api) if you are using Mac.
30
-
* Copy this URN in /www/views/index.js at line #18 <br />
29
+
* Upload one of your model in your account and get its URN using other workflow sample, for example,
30
+
-[this workflow sample in .net winform application](https://github.com/Developer-Autodesk/workflow-dotnet-winform-view.and.data.api/) if you are using windows
31
+
- or [this workflow sample in Mac OS Swift](https://github.com/Developer-Autodesk/workflow-macos-swift-view.and.data.api) if you are using Mac
32
+
- or this [WEB page](http://javalmvwalkthrough-vq2mmximxb.elasticbeanstalk.com/)
33
+
* Copy this URN in /www/views/index.js at line #18 <br />
31
34
```
32
35
var urnprod = 'your_urn_here';
33
36
```
34
-
*Run the server from the Node.js console, by running the follwing command: <br />
37
+
*Run the server from the Node.js console, by running the following command: <br />
35
38
```
36
39
node server.js
37
40
```
38
-
*Connect to server locally using a WebGL-compatible browser: [http://localhost:3000/node/basic](http://localhost:3000/node/basic)
41
+
*Connect to server locally using a WebGL-compatible browser: [http://localhost:3000/](http://localhost:3000/)
39
42
40
43
41
-
This sample can also work with the Autodesk staging server (vs production) or work with someone else credentials as long you can get a valid token. By default, the project is setup with the production server, and use your own credentials. If you are interested by a different setup, see the Options below.
44
+
This sample can also work with the Autodesk staging server (vs production) or work with someone else credentials as long you can get a valid token.
45
+
By default, the project is setup with the production server, and use your own credentials. If you are interested by a different setup, see the Options below.
42
46
43
47
## Options
44
48
45
49
You can work with production or staging Autodesk View and Data environments. By default, the project is setup with the production server.
46
50
47
-
### Production server option: Use [upload tool](http://still-spire-1606.herokuapp.com) online service to upload model.
51
+
### Option A: Production server option: Use [upload tool](http://still-spire-1606.herokuapp.com) online service to upload model.
48
52
49
-
*The [upload tool](http://still-spire-1606.herokuapp.com) provides some existing models. Choose any one of them, or upload one of your own models with [upload tool](http://still-spire-1606.herokuapp.com). The [upload tool](http://still-spire-1606.herokuapp.com) will generate a URN of the model that you need later.
50
-
*Copy this URN in /www/views/index.js at line #18 <br />
53
+
*The [upload tool](http://still-spire-1606.herokuapp.com) provides some existing models. Choose any one of them, or upload one of your own models with [upload tool](http://still-spire-1606.herokuapp.com). The [upload tool](http://still-spire-1606.herokuapp.com) will generate a URN of the model that you need later.
54
+
*Copy this URN in /www/views/index.js at line #18 <br />
51
55
```
52
56
var urnprod = 'your_urn_here';
53
57
```
54
-
*In /www/views/index.js, at line #36, change value of tokenurl to the access token you can generate from 'http://still-spire-1606.herokuapp.com/api/rawtoken'
55
-
*Run the server from the Node.js console, by running the follwing command: <br />
58
+
*In /www/views/index.js, at line #36, change value of tokenurl to the access token you can generate from 'http://still-spire-1606.herokuapp.com/api/rawtoken'
59
+
*Run the server from the Node.js console, by running the following command: <br />
56
60
```
57
61
node server.js
58
62
```
59
-
*Connect to server locally using a WebGL-compatible browser: [http://localhost:3000/node/basic](http://localhost:3000/node/basic)
63
+
*Connect to server locally using a WebGL-compatible browser: [http://localhost:3000/](http://localhost:3000/)
60
64
61
65
62
-
### To work with the staging environment, you need to use your own credential vs the option above.
63
-
*Apply your own credentials from [http://developer-stg.autodesk.com](http://developer-stg.autodesk.com)
64
-
*Replace the place holder with your own keys in credentials-stg.js, line #23 and #25 <br />
66
+
### Option B: To work with the staging environment, you need to use your own credential vs the option above.
67
+
*Apply your own credentials from [http://developer-stg.autodesk.com](http://developer-stg.autodesk.com)
68
+
*Replace the place holder with your own keys in credentials-stg.js, line #23 and #25 <br />
65
69
```
66
70
credentials.ClientId = '<replace with clientId>';
67
71
68
72
credentials.ClientSecret = '<replace with clientSecret>';
69
73
```
70
-
* Upload one of your model in your account and get its URN using other workflow sample,for example, [this workflow sample in .net winform application](https://github.com/Developer-Autodesk/workflow-dotnet-winform-view.and.data.api/) if you are using windows or [this workflow sample in Mac OS Swift](https://github.com/Developer-Autodesk/workflow-macos-swift-view.and.data.api) if you are using Mac. But please use [staging URL](https://developer-stg.api.autodesk.com) to proceed with the workflows.
71
-
* Copy this URN in /www/views/index.js at line #19 <br />
74
+
* Upload one of your model in your account and get its URN using other workflow sample,for example,
75
+
-[this workflow sample in .net winform application](https://github.com/Developer-Autodesk/workflow-dotnet-winform-view.and.data.api/) if you are using windows
76
+
- or [this workflow sample in Mac OS Swift](https://github.com/Developer-Autodesk/workflow-macos-swift-view.and.data.api) if you are using Mac
77
+
But please use [staging URL](https://developer-stg.api.autodesk.com) to proceed with the workflows.
78
+
* Copy this URN in /www/views/index.js at line #19 <br />
72
79
```
73
80
var urnstg = 'your_urn_here';
74
81
```
75
-
*In /www/views/index.js, around line #24, make sure the variable staging is true.
76
-
*In /www/views/index.html (line $33 and #34), use viewer3D.min.js and style.css from the staging environment <br />
82
+
*In /www/views/index.js, around line #24, make sure the variable staging is true.
83
+
*In /www/views/index.html (line $33 and #34), use viewer3D.min.js and style.css from the staging environment <br />
0 commit comments