Version: v2.32.2 | Last Updated: 2025-06-16 | Status: GUIDANCE
Welcome to EntityDB! This guide will get you up and running with EntityDB v2.32.2 in just a few minutes.
⚠️ Critical: v2.29.0+ includes major authentication changes. User credentials are now embedded in user entities. All users from previous versions must be recreated.
- Git
- Go 1.19+ (for building from source)
- Linux/macOS environment
jq(for JSON parsing in examples)
git clone https://git.home.arpa/itdlabs/entitydb.git
cd entitydbcd src
make
cd .../bin/entitydb --version
# Should output: EntityDB v2.32.2# Start server daemon with SSL enabled (default)
./bin/entitydbd.sh start
# Check server status
./bin/entitydbd.sh status
# View server logs
./bin/entitydbd.sh logs
# Stop server
./bin/entitydbd.sh stop- URL: https://localhost:8085 (SSL enabled by default)
- Data: Stored in
/opt/entitydb/var/ - Config:
/opt/entitydb/share/config/entitydb.env
SSL Note: EntityDB uses SSL by default. The
-kflag in curl commands bypasses certificate verification for development.
EntityDB automatically creates a default admin user on first startup:
- Username:
admin - Password:
admin - Roles:
admin,user
Security: Change the default password immediately in production!
TOKEN=$(curl -s -k -X POST https://localhost:8085/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"username":"admin","password":"admin"}' | jq -r '.token')
echo "Token: $TOKEN"curl -k -X POST https://localhost:8085/api/v1/entities/create \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "my_first_document",
"tags": ["type:document", "status:draft", "category:tutorial"],
"content": "VGhpcyBpcyBteSBmaXJzdCBFbnRpdHlEQiBkb2N1bWVudCE="
}'curl -k -X GET "https://localhost:8085/api/v1/entities/list" \
-H "Authorization: Bearer $TOKEN"curl -k -X GET "https://localhost:8085/api/v1/entities/list?tag=type:document" \
-H "Authorization: Bearer $TOKEN"curl -k -X GET "https://localhost:8085/api/v1/entities/get?id=my_first_document" \
-H "Authorization: Bearer $TOKEN"curl -k -X PUT "https://localhost:8085/api/v1/entities/update?id=my_first_document" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tags": ["type:document", "status:published", "category:tutorial"],
"content": "VXBkYXRlZCBmaXJzdCBFbnRpdHlEQiBkb2N1bWVudCE="
}'Access the EntityDB dashboard at: https://localhost:8085
The dashboard provides:
- Entity browser and search
- Real-time metrics and monitoring
- System health status
- Administrative tools
Everything in EntityDB is an entity with:
- ID: Unique identifier
- Tags: Timestamped metadata
- Content: Binary data (auto-chunked for large files)
Hierarchical namespace system:
type:document # Entity classification
status:published # Entity state
category:tutorial # Custom metadata
rbac:role:admin # Access control
All tags are timestamped with nanosecond precision, enabling:
- Time-travel queries
- Full audit trails
- Historical data analysis
- Core Concepts - Understand EntityDB fundamentals
- Authentication - Session management
- Entity API - Complete API reference
- System Overview - High-level architecture
- Temporal Storage - Time-based features
- RBAC System - Access control
- Temporal Queries - Time-travel operations
- Advanced Queries - Connect entities
- Performance Tuning - Optimize for scale
- Production Deployment - Deploy to production
- Security Configuration - Secure your installation
- Deployment Guide - Set up monitoring
Server won't start?
- Check logs:
./bin/entitydbd.sh logs - Verify ports aren't in use:
netstat -tlnp | grep 8085
SSL certificate errors?
- Use
-kflag for development:curl -k https://localhost:8085 - Configure proper certificates for production
Authentication issues?
- Verify token:
curl -k -X GET https://localhost:8085/api/v1/auth/whoami -H "Authorization: Bearer $TOKEN" - Check user permissions in dashboard
- Documentation: EntityDB Docs
- Issues: https://git.home.arpa/itdlabs/entitydb/issues
- Troubleshooting: Common Issues
Congratulations! You now have EntityDB running and understand the basics. Ready to build something amazing? 🚀