# VectorLite Demo Scripts
This folder contains demonstration scripts and examples for testing the VectorLite API server.
## 🚀 Quick Start
1. **Start the server** (in one terminal):
```bash
cargo run --bin vectorlite -- --port 3002
```
2. **Run a demo** (in another terminal):
```bash
cd demo
./run_demo.sh
```
Or run individual scripts:
```bash
./quick_test.sh
```
## 📁 Scripts Overview
### `run_demo.sh` - Interactive Demo Runner
- **Purpose**: Interactive menu to choose and run demos
- **Duration**: Varies based on selection
- **Use case**: Easy demo selection and execution
- **What it does**: Checks server status, provides menu, runs selected demo
```bash
./run_demo.sh
```
### `quick_test.sh` - Quick Smoke Test
- **Purpose**: Fast verification that the server is working
- **Duration**: ~10 seconds
- **Use case**: Quick health check and basic functionality test
- **What it tests**: Health check, collection creation, text addition, search
```bash
./quick_test.sh
```
### `test_endpoints.sh` - Comprehensive Test Suite
- **Purpose**: Thorough testing of all API endpoints
- **Duration**: ~30 seconds
- **Use case**: Full API validation and regression testing
- **What it tests**: All endpoints, error cases, persistence operations
```bash
./test_endpoints.sh
```
### `test_api.sh` - Detailed Test Suite
- **Purpose**: Most comprehensive testing with detailed output
- **Duration**: ~45 seconds
- **Use case**: Deep testing and debugging
- **What it tests**: Everything with verbose logging and error handling
```bash
./test_api.sh
```