Getting Started with VEX#
Get up and running with VEX in under 5 minutes.
Prerequisites#
- Rust 1.75+ (stable toolchain)
- Git
Installation#
Add to Your Project#
TOML
Clone and Build#
Bash
Project Structure#
Understanding the workspace layout is crucial for effective development:
Code
Quick Example#
Rust
Running the Demo#
Bash
Running the API Server#
Bash
Configuration & Environment#
VEX uses dotenv to load configuration. Create a .env file in your project root:
Bash
Step-by-Step Setup#
-
Install Rust:
Bash -
Clone Repository:
Bash -
Install Dependencies: (VEX requires
sqlx-clifor database migrations)Bash -
Initialize Database:
Bash -
Run Tests: Ensure everything is working correctly.
Bash
Next Steps#
- API Reference — Full Rustdoc documentation
- Examples — More code examples
- Architecture — System design