Skip to content

Commit cb4df08

Browse files
authored
Update README.md
1 parent 036df45 commit cb4df08

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

README.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,40 +46,46 @@ Windows, Unix-systems and MacOS are supported. For Windows, you'll need to call
4646
4747
The text repository ends with the language code, e.g for the French version `...-fr`, for Russian – `...-ru` etc.
4848
49-
E.g. for the Russian version:
49+
E.g. for the English version:
5050
```
5151
cd /js
52-
git clone https://github.com/iliakan/javascript-tutorial-ru
52+
git clone https://github.com/iliakan/javascript-tutorial-en
5353
```
5454
5555
6. Run the site
5656
57-
Run the site with the same language. Above we cloned `ru` tutorial, so:
57+
Install local modules:
5858
5959
```
6060
cd /js/javascript-tutorial-server
61-
./edit ru
61+
npm install
62+
```
63+
64+
Run the site with the same language. Above we cloned `en` tutorial, so:
65+
66+
```
67+
./edit en
6268
```
6369
64-
This will import the tutorial from `/js/javascript-tutorial-ru` and start the server.
70+
This will import the tutorial from `/js/javascript-tutorial-en` and start the server.
6571
66-
Wait a bit while it reads the tutorial from disk and builds static assets.
72+
Wait a bit while it reads the tutorial from the disk and builds static assets.
6773
6874
Then access the site at `http://127.0.0.1:3000`.
6975
7076
7. Edit the tutorial
7177
7278
As you edit text files in the tutorial text repository (cloned at step 5),
73-
the webpage gets reloaded automatically.
74-
79+
the webpage will reload automatically.
80+
7581
7682
# Change server language
7783
7884
The server uses English by default for navigation and design.
7985
8086
You can set another language it with the second argument of `edit`.
8187
82-
E.g. import `ru` tutorial and use `ru` locale for the server
88+
E.g. if you cloned `ru` tutorial, it makes sense to use `ru` locale for the server as well:
8389
8490
```
8591
cd /js/javascript-tutorial-server
@@ -90,13 +96,13 @@ Please note, the server must support that language. There must be corresponding
9096
9197
# Dev mode
9298
93-
If you'd like to edit the server code (assuming you're familiar with Node.js), *not* the tutorial text, then there are two steps to make that easy.
99+
If you'd like to edit the server code (assuming you're familiar with Node.js), *not* the tutorial text, then there are two steps to do.
94100
95101
First, run the command that imports (and caches) the tutorial:
96102
97103
```
98104
cd /js/javascript-tutorial-server
99-
NODE_LANG=en TUTORIAL_ROOT=/js/javascript-tutorial-ru npm run gulp jsengine:koa:tutorial:import
105+
NODE_LANG=en TUTORIAL_ROOT=/js/javascript-tutorial-en npm run gulp jsengine:koa:tutorial:import
100106
```
101107
102108
In the code above, `NODE_LANG` sets server language, while `TUTORIAL_ROOT` is the full path to tutorial repo, by default is `/js/javascript-tutorial-$NODE_LANG`.
@@ -123,6 +129,5 @@ Please mention OS and Node.js version.
123129
Also please pull the very latest git code and install latest Node.js modules before publishing an issue.
124130
125131
--
126-
Yours,
127132
Ilya Kantor
128133
iliakan@javascript.info

0 commit comments

Comments
 (0)