Skip to content

Commit 061a8ec

Browse files
authored
Add installtaion guide (#6)
Previously, the README lacked clear installation instructions, which could confuse new users. This MR adds a dedicated installation section with step-by-step guidance.
1 parent d94be74 commit 061a8ec

File tree

6 files changed

+153
-23
lines changed

6 files changed

+153
-23
lines changed

README.md

Lines changed: 72 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# Synthetic Data Values Generator (SDVG)
22

33
[![Release][release-badge]][release-url]
4+
[![Pre-release][pre-release-badge]][pre-release-url]
45
[![CI][actions-badge]][actions-url]
56
[![Coverage Status][test-coverage-badge]][test-coverage-url]
67
[![Language][language-badge]][language-url]
78
[![License][license-badge]][license-url]
89

9-
[release-badge]: https://img.shields.io/github/v/release/tarantool/sdvg?filter=!latest
10-
[release-url]: https://github.com/tarantool/sdvg/releases
10+
[release-badge]: https://img.shields.io/github/v/release/tarantool/sdvg
11+
[release-url]: https://github.com/tarantool/sdvg/releases/latest/
12+
[pre-release-badge]: https://img.shields.io/badge/pre--release-latest-orange
13+
[pre-release-url]: https://github.com/tarantool/sdvg/releases/tag/latest/
1114
[actions-badge]: https://img.shields.io/github/check-runs/tarantool/sdvg/master
1215
[actions-url]: https://github.com/tarantool/sdvg/actions
1316
[test-coverage-badge]: https://img.shields.io/coverallsCoverage/github/tarantool/sdvg?branch=master
@@ -17,6 +20,8 @@
1720
[license-badge]: https://img.shields.io/github/license/tarantool/sdvg
1821
[license-url]: ./LICENSE
1922

23+
![scheme.png](asset/scheme.png)
24+
2025
## Language
2126

2227
- **English**
@@ -64,6 +69,66 @@ Output formats:
6469
- HTTP API;
6570
- Tarantool Column Store HTTP API.
6671

72+
## Installation
73+
74+
### Standard installation
75+
76+
You can install SDVG by downloading the appropriate binary version
77+
from the [GitHub Releases page](https://github.com/tarantool/sdvg/releases).
78+
79+
Download binary for your OS:
80+
81+
```shell
82+
# Linux (x86-64)
83+
curl -Lo sdvg https://github.com/tarantool/sdvg/releases/latest/download/sdvg-linux-amd64
84+
```
85+
86+
```shell
87+
# Linux (ARM64)
88+
curl -Lo sdvg https://github.com/tarantool/sdvg/releases/latest/download/sdvg-linux-arm64
89+
```
90+
91+
```shell
92+
# macOS (x86-64)
93+
curl -Lo sdvg https://github.com/tarantool/sdvg/releases/latest/download/sdvg-darwin-amd64
94+
```
95+
96+
```shell
97+
# macOS (ARM64)
98+
curl -Lo sdvg https://github.com/tarantool/sdvg/releases/latest/download/sdvg-darwin-arm64
99+
```
100+
101+
Install binary in your system:
102+
103+
```shell
104+
chmod +x sdvg
105+
sudo mv sdvg /usr/local/bin/sdvg
106+
```
107+
108+
Check that everything works correctly:
109+
110+
```shell
111+
sdvg version
112+
```
113+
114+
### Compile and install from sources
115+
116+
To compile and install this tool, you can use `go install` command:
117+
118+
```shell
119+
# To get the specified version
120+
go install github.com/tarantool/[email protected]
121+
# To get a version from the master branch
122+
go clean -modcache
123+
go install github.com/tarantool/sdvg@latest
124+
```
125+
126+
Check that everything works correctly:
127+
128+
```shell
129+
sdvg version
130+
```
131+
67132
## Quick Start
68133

69134
Here's an example of a data model that generates 10,000 user rows and writes them to a CSV file:
@@ -86,7 +151,7 @@ models:
86151
Save this as `simple_model.yml`, then run:
87152

88153
```bash
89-
./sdvg generate simple_model.yml
154+
sdvg generate simple_model.yml
90155
```
91156

92157
This will create a CSV file with fake user data like `id` and `name`:
@@ -102,15 +167,15 @@ b5c024f8-3f6f-43d3-b021-0bb2305cc680,Hilton
102167
To launch the generator in interactive mode:
103168

104169
```bash
105-
./sdvg
170+
sdvg
106171
```
107172

108173
To view available commands and arguments:
109174

110175
```bash
111-
./sdvg -h
112-
./sdvg --help
113-
./sdvg generate -h
176+
sdvg -h
177+
sdvg --help
178+
sdvg generate -h
114179
```
115180

116181
More information can be found in the [user guide](./doc/en/usage.md).

README.ru.md

Lines changed: 72 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# Synthetic Data Values Generator (SDVG)
22

33
[![Release][release-badge]][release-url]
4+
[![Pre-release][pre-release-badge]][pre-release-url]
45
[![CI][actions-badge]][actions-url]
56
[![Coverage Status][test-coverage-badge]][test-coverage-url]
67
[![Language][language-badge]][language-url]
78
[![License][license-badge]][license-url]
89

9-
[release-badge]: https://img.shields.io/github/v/release/tarantool/sdvg?filter=!latest
10-
[release-url]: https://github.com/tarantool/sdvg/releases
10+
[release-badge]: https://img.shields.io/github/v/release/tarantool/sdvg
11+
[release-url]: https://github.com/tarantool/sdvg/releases/latest/
12+
[pre-release-badge]: https://img.shields.io/badge/pre--release-latest-orange
13+
[pre-release-url]: https://github.com/tarantool/sdvg/releases/tag/latest/
1114
[actions-badge]: https://img.shields.io/github/check-runs/tarantool/sdvg/master
1215
[actions-url]: https://github.com/tarantool/sdvg/actions
1316
[test-coverage-badge]: https://img.shields.io/coverallsCoverage/github/tarantool/sdvg?branch=master
@@ -17,6 +20,8 @@
1720
[license-badge]: https://img.shields.io/github/license/tarantool/sdvg
1821
[license-url]: ./LICENSE
1922

23+
![scheme.png](asset/scheme.png)
24+
2025
## Язык
2126

2227
- [English](README.md)
@@ -64,6 +69,66 @@ SDVG (Synthetic Data Values Generator) — это инструмент для г
6469
- HTTP API;
6570
- Tarantool Column Store HTTP API.
6671

72+
## Установка
73+
74+
### Стандартная установка
75+
76+
Вы можете установить SDVG, скачав готовый бинарный файл нужной версии
77+
со [страницы релизов на GitHub](https://github.com/tarantool/sdvg/releases).
78+
79+
Скачайте бинарный файл для вашей операционной системы:
80+
81+
```shell
82+
# Linux (x86-64)
83+
curl -Lo sdvg https://github.com/tarantool/sdvg/releases/latest/download/sdvg-linux-amd64
84+
```
85+
86+
```shell
87+
# Linux (ARM64)
88+
curl -Lo sdvg https://github.com/tarantool/sdvg/releases/latest/download/sdvg-linux-arm64
89+
```
90+
91+
```shell
92+
# macOS (x86-64)
93+
curl -Lo sdvg https://github.com/tarantool/sdvg/releases/latest/download/sdvg-darwin-amd64
94+
```
95+
96+
```shell
97+
# macOS (ARM64)
98+
curl -Lo sdvg https://github.com/tarantool/sdvg/releases/latest/download/sdvg-darwin-arm64
99+
```
100+
101+
Установите бинарный файл в систему:
102+
103+
```shell
104+
chmod +x sdvg
105+
sudo mv sdvg /usr/local/bin/sdvg
106+
```
107+
108+
Проверьте, что все работает правильно:
109+
110+
```shell
111+
sdvg version
112+
```
113+
114+
### Сборка и установка из исходников
115+
116+
Для сборки и установки этого инструмента можно использовать команду `go install`:
117+
118+
```shell
119+
# Чтобы установить указанную версию
120+
go install github.com/tarantool/[email protected]
121+
# Чтобы установить версию из ветки master
122+
go clean -modcache
123+
go install github.com/tarantool/sdvg@latest
124+
```
125+
126+
Проверьте, что все работает правильно:
127+
128+
```shell
129+
sdvg version
130+
```
131+
67132
## Быстрый старт
68133

69134
Пример модели данных, которая генерирует 10 000 строк пользователей и записывает их в CSV-файл:
@@ -86,7 +151,7 @@ models:
86151
Сохраните это в файл `simple_model.yml`, затем выполните:
87152

88153
```bash
89-
./sdvg generate simple_model.yml
154+
sdvg generate simple_model.yml
90155
```
91156

92157
Это создаст CSV-файл с фейковыми пользовательскими данными, такими как `id` и `name`:
@@ -102,15 +167,15 @@ b5c024f8-3f6f-43d3-b021-0bb2305cc680,Hilton
102167
Чтобы запустить генератор в интерактивном режиме:
103168

104169
```bash
105-
./sdvg
170+
sdvg
106171
```
107172

108173
Чтобы посмотреть доступные команды и аргументы:
109174

110175
```bash
111-
./sdvg -h
112-
./sdvg --help
113-
./sdvg generate -h
176+
sdvg -h
177+
sdvg --help
178+
sdvg generate -h
114179
```
115180

116181
Больше информации можно найти в [руководстве по эксплуатации](./doc/ru/usage.md).

asset/scheme.png

386 KB
Loading

config/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
#open_ai:
1313
# api_key:
1414
# base_url:
15-
# model:
15+
# model:

doc/en/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ To release a new version:
3030

3131
1. Review and update the changelog in [CHANGELOG.md](../../CHANGELOG.md) if needed.
3232
2. Add a new header for the release version with a link to the git diff in [CHANGELOG.md](../../CHANGELOG.md).
33-
Use the format: `## [0.0.0](https://.../compare/prev...current) - 2000-12-31`;
33+
Use the format: `## [0.0.0](https://.../compare/prev...current) - 2000-12-31`.
3434
3. Commit to the main branch (via MR) with a commit message containing `release 0.0.0`.

doc/ru/usage.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -425,15 +425,15 @@ models:
425425
Для запуска в интерактивном режиме достаточно запустить бинарный файл SDVG:
426426

427427
```shell
428-
./sdvg
428+
sdvg
429429
```
430430

431431
Для получения информации о возможных командах и их аргументах:
432432

433433
```shell
434-
./sdvg -h
435-
./sdvg --help
436-
./sdvg generate -h
434+
sdvg -h
435+
sdvg --help
436+
sdvg generate -h
437437
```
438438

439439
### Генерация данных
@@ -445,7 +445,7 @@ models:
445445
Для запуска генерации с указанием файла конфигурации генерации:
446446

447447
```shell
448-
./sdvg generate ./models.yml
448+
sdvg generate ./models.yml
449449
```
450450

451451
### Игнорирование конфликтов
@@ -454,15 +454,15 @@ models:
454454
и продолжить генерацию без дополнительных сообщений, используйте флаг `-F` или `--force`:
455455

456456
```shell
457-
./sdvg generate --force ./models.yml
457+
sdvg generate --force ./models.yml
458458
```
459459

460460
### Продолжение генерации
461461

462462
Для продолжения генерации с последней записанной строки:
463463

464464
```shell
465-
./sdvg generate --continue-generation ./models.yml
465+
sdvg generate --continue-generation ./models.yml
466466
```
467467

468468
> **Важно**: для корректного продолжения генерации нельзя менять конфигурацию генерации и уже сгенерированные данные.

0 commit comments

Comments
 (0)