NoSQL Populate Database
This tool helps to populate MongoDB with random customers. This is an ancillary project that can help us to set different scenarios.
- project location: nosql-populate
⚠️ Run these commands inside the root folder.
Create an alias for nosql-populate
:
alias nosql-populate="$PWD/nosql-populate/build/install/nosql-populate/bin/nosql-populate "
To permanently add the alias to your shell (~/.bashrc
or ~/.zshrc
file):
echo "alias nosql-populate='$PWD/nosql-populate/build/install/nosql-populate/bin/nosql-populate '" >> ~/.zshrc
Install the app:
./gradlew nosql-populate:install
nosql-populate
Example:
nosql-populate --url "mongodb://root:notasecret@localhost:27017" -d "sandbox" 100