Skip to content

Commit e8874c4

Browse files
author
Jeremy Tammik
committed
clarified optional in chapter 2
1 parent 9003a0e commit e8874c4

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

chapter-2.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,45 @@
11
<a name="Chapter2"></a>
2-
# Chapter 2 - (Optional) Extend your web server to support upload/translation
2+
# Chapter 2 (Optional) Extend your web server to support upload/translation
33

44
- [Choose your option](#Options)
55
- [Translating from the client](chapter-2a.md#Chapter2a)
66
- [Translating from the server](chapter-2b.md#Chapter2b)
77

88

9-
You already uploaded and translated a model earlier in this tutorial, so adding support for uploading/translating to your node.js server is optional.
10-
If you want to add it now, choose your option below and follow the instructions there.
11-
Or you can come back and work through that later, if you prefer.
9+
You already uploaded and translated one model earlier in this tutorial, so adding support for uploading/translating to your node.js server is optional.
10+
For instance, it might be important if your use case involves numerous models and you would like to implement support for automatic upload and translation.
11+
If you want to add it now, choose your option below and follow the instructions there.
12+
You can also come back and work through this step later, if you prefer.
1213

13-
Once you've finished that additional tutorial, or if you chose to skip it, move on to the next section - ['Customize the Viewer Behavior'](chapter-3.md#Chapter3).
14+
After you've finished or skipped this optional step, move on to the next section ['Customize the Viewer Behavior'](chapter-3.md#Chapter3).
1415

1516

1617
<a name="Options"></a>
1718
## Choose your option
1819

1920
Before you decide if you want to handle translation in your web application, you first need to decide if you want to do the translation from the server or the client.
2021
The only important step was to make sure the access token was generated on the server side to avoid anyone to steal your consumer key and secret.
21-
That step was done in the previous steps. Now, once you have a valid access token, you can do the translation either on the client (JavaScript code running
22-
in the browser) or on the server (JavaScript code running on the node.js server). The path you choose depends on what you want to achieve. Running on the client
23-
side means no files are transitioning via your server, and you aren’t using any server CPU time. Running from the server means that you control everything your
22+
That step was done in the previous steps. Now, once you have a valid access token, you can do the translation either on the client (JavaScript code running
23+
in the browser) or on the server (JavaScript code running on the node.js server). The path you choose depends on what you want to achieve. Running on the client
24+
side means no files are transitioning via your server, and you aren’t using any server CPU time. Running from the server means that you control everything your
2425
users are doing.
2526

26-
Either choose [‘Translating from the client’](chapter-2a.md#Chapter2a) or [‘Translating from the server’](chapter-2b.md#Chapter2b) as the next step. If you've already
27-
completed one of them and would like to try another, please revert back to the original status first. You can save your changes with git and checkout the master branch
27+
Either choose [‘Translating from the client’](chapter-2a.md#Chapter2a) or [‘Translating from the server’](chapter-2b.md#Chapter2b) as the next step. If you've already
28+
completed one of them and would like to try another, please revert back to the original status first. You can save your changes with git and checkout the master branch
2829
to get a clean start point.
2930
```
3031
git checkout -b yourbranchname
3132
git add .
3233
git commit -am 'save my changes'
33-
git checkout master -f
34+
git checkout master -f
3435
```
35-
36+
3637
And you can use following command to bring back your changes if you want:
3738
```
3839
git checkout yourbranchname
39-
```
40+
```
41+
4042

41-
4243
=========================
43-
[Next](chapter-3.md#Chapter3) -
44+
[Next](chapter-3.md#Chapter3)
4445
[Home](README.md)

0 commit comments

Comments
 (0)