Skip to content

Commit

Permalink
[ISSUE #292] Update current quick-start
Browse files Browse the repository at this point in the history
1. update current quick-start
  • Loading branch information
TheR1sing3un committed Jun 8, 2023
1 parent 339149c commit d1e080e
Showing 1 changed file with 42 additions and 9 deletions.
51 changes: 42 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,64 @@ mvn clean install -DskipTests

### Run Command Line

* Get Command Usage
```
java -jar command/target/DLedger.jar
#### Help

> Print Help in Command Line
```shell
java -jar example/target/dledger-example.jar
```

* Start DLedger Server
#### Appender

**A high-available, high-durable, strong-consistent, append-only log store.**

> Start a Standalone Appender Server
```shell
java -jar example/target/dledger-example.jar appender
```
nohup java -jar command/target/DLedger.jar server &

> Append Data to Appender
```shell
java -jar example/target/dledger-example.jar append -d "Hello World"
```
After this command, you have appended a log which contains "Hello World" to the appender.

> Get Data from Appender
* Append Data to DLedger
```shell
java -jar example/target/dledger-example.jar get -i 0
```
java -jar command/target/DLedger.jar append -d "Hello World"
After this command, you have got the log which contains "Hello World" from the appender.

#### RegisterModel

**A simple multi-register model**

> Start a Standalone RegisterModel Server
```shell
java -jar example/target/dledger-example.jar register
```

* Get Data from DLedger
> Write Value for a Key
```shell
java -jar example/target/dledger-example.jar write -k 13 -v 31
```

java -jar command/target/DLedger.jar get -i 0
After this command, you have written a key-value pair which is <13, 31> to the register model.

> Read Value for a Key
```shell
java -jar example/target/dledger-example.jar read -k 13
```

After this command, you have read the value 31 for the key 13 from the register model.

## Contributing
We always welcome new contributions, whether for trivial cleanups, big new features. We are always interested in adding new contributors. What we look for are series of contributions, good taste and ongoing interest in the project. If you are interested in becoming a committer, please let one of the existing committers know and they can help you walk through the process.

Expand Down

0 comments on commit d1e080e

Please sign in to comment.