Get Started
Author: Sora Suegami
Requirements
To run the server, the following tools are required:
- Sommelier-DB
- jasson (json library)
To run the client, the following tools are required:
- rustc 1.65.0-nightly
- cargo 1.65.0-nightly
- cbindgen 0.24.3
Setup
We open the first terminal for running the server and clone the server repository.
1 2 3 |
|
The sommelier-drive-server is built as below:
1 2 |
|
We then open the second terminal for running the client CLI and clone the client repository.
1 2 3 |
|
The sommelier-drive-client is built by simply executing the build.sh
.
1 |
|
Operate files with Sommelier Drive!
Now, let's operate files with Sommelier Drive! You will notice that the UX of Sommelier Drive is almost the same as existing Unix file systems, which you probably use every day.
On the first terminal, we run the server.
1 |
|
http://localhost:8000/api
.
On the second terminal, we manage the files on that server. While performing the following operations, also look at the first terminal running the server. You can find that no file path or contents appear on the server side!
We first create a new user account and creates an initial directory /data1
under the root directory.
1 |
|
/data1
.
1 2 |
|
/data1/hello.txt
!
1 2 3 |
|
/data1
.
1 |
|
1 2 |
|