The environment requirements of Distkv are:
The following steps guide you to build a full version Distkv with dkv-server
and dkv-cli
.
Clone the Distkv repository to your local.
git clone https://github.com/distkv-project/distkv.git
Enter the root directory of Distkv.
cd distkv
Install the dependencies of Distkv.
bash scripts/install_dependencies.sh
Install Distkv.
pip install -e deploy/python -v
After the 4 steps, the Distkv should be installed successfully on you local. Type dkv-server --version
to have a check.
If you'd like to run the unit tests of Distkv, you needn't build the full version Distkv. Just follow the following steps to build a simple version of Distkv and run the unit tests.
Install the dependencies of Distkv.
bash scripts/install_dependencies.sh
Build with skiping tests.
mvn clean install -DskipTests
If you'd like to run the tests, use this command.
mvn test
If there is no error appearing, congratulations, you have succeeded to build Distkv and pass all tests.