Skip to content

Commit

Permalink
upd readme
Browse files Browse the repository at this point in the history
  • Loading branch information
olton committed Jul 12, 2021
1 parent db3ff9d commit ad875f9
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 39 deletions.
5 changes: 0 additions & 5 deletions .browserslistrc

This file was deleted.

23 changes: 13 additions & 10 deletions README.RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,28 +246,31 @@ These rules are controlled by parameters `memAlert` and `memRestart`.

Для сборки клиентского приложения выполните команду, указанную ниже:

**Для Windows**
```shell
npm run build
```

**Для Linux**
```shell
npm run build_x
```

Теперь папка `dist` содержит скомпилированные файлы клиента. Скопируйте указанные файлы на ваш web server.

Если у вас нет web сервера, вы можете запустить клиента в локальном окружении. Для этого выполните команду:
### Running client and server locally

#### Client

**Для Windows**
```shell
npm run serve
```
or
```shell
npm start
```
or
```shell
npm run client
```

**Для Linux**
#### Server
```shell
npm run serve_x
npm run server
```

### Установка сервера
Expand Down
24 changes: 14 additions & 10 deletions README.UA.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,27 +249,31 @@ These rules are controlled by parameters `memAlert` and `memRestart`.

Для складання клієнтської програми виконайте команду, вказану нижче:

**Для Windows**
```shell
npm run build
```

**Для Linux**
```shell
npm run build_x
```

Тепер папка `dist` містить скомпільовані файли клієнта. Скопіюйте зазначені файли на ваш web server.
Якщо у вас немає web сервера, ви можете запустити клієнта в локальному оточенні. Для цього виконайте команду:

**Для Windows**
### Running client and server locally

#### Client

```shell
npm run serve
```
or
```shell
npm start
```
or
```shell
npm run client
```

**Для Linux**
#### Server
```shell
npm run serve_x
npm run server
```

### Установка сервера
Expand Down
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ git clone https://github.com/olton/mina-node-monitor.git

#### Install required packages
```shell
npm i
npm install
```

The Monitor consists of two parts:
Expand Down Expand Up @@ -239,28 +239,31 @@ These rules are controlled by parameters `memAlert` and `memRestart`.
### Build web client
To build client use command:

**for Windows**
```shell
npm run build
```

**for Linux**
```shell
npm run build_x
```

Now folder `dist` contains a compiled client files. Copy these to your web server.

If you don't have a web server, you can run the client in your local environment. To do this, run the command:
### Running client and server locally

#### Client

**For Windows**
```shell
npm run serve
```
or
```shell
npm start
```
or
```shell
npm run client
```

**For Linux**
#### Server
```shell
npm run serve_x
npm run server
```

### Install server app
Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"build": "parcel build --out-dir dist --public-url . --no-source-maps client/index.html",
"start": "npm run serve",
"client": "npm run serve",
"server": "node --trace-warnings server\\monitor.mjs",
"server_x": "node --trace-warnings server/monitor.mjs"
"server": "node --trace-warnings server/monitor.mjs"
},
"devDependencies": {
"less": "^4.1.1",
Expand All @@ -26,5 +25,11 @@
"staticPath": [
"client/config.json"
]
}
},
"browserslist": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Opera versions",
"last 2 Edge versions"
]
}

0 comments on commit ad875f9

Please sign in to comment.