On this page
Pro Tip
Use --node-id auto when clustering to let SoliDB generate unique IDs for you.
Getting Started
Get up and running with SoliDB in minutes. Learn the basics of installation, connecting, and running your first queries.
Installation
1 Using Cargo
Terminal
cargo install solidb
2 From Source
Terminal
$git clone https://github.com/solisoft/solidb
$cd solidb
$cargo build --release
Basic Usage
Start the server and interact with the HTTP API using curl or your preferred client.
1. Start Server
./target/release/solidb --port 8080
2. Create Database
curl -X POST http://localhost:8080/_api/database -d '{"name":
"mydb"}'
Creates a new database namespace called "mydb".
3. Insert Document
curl -X POST http://localhost:8080/_api/document/mydb/users
\
-d '{"name": "Alice", "age": 30, "city": "Paris"}'
-d '{"name": "Alice", "age": 30, "city": "Paris"}'
Inserts a JSON document into the "users" collection within "mydb".