Welcome to Revali Server! This guide will help you set up everything you need to start building powerful Dart web servers.
Quick Start#
The fastest way to get started is to add both required dependencies at once:
# Add the runtime dependency
dart pub add revali_router
# Add the development dependency
dart pub add revali --dev
# Get all dependencies
dart pub get
That's it! You're ready to start building your server.
Understanding the Dependencies#
Revali Server is built on a foundation of two key packages, each serving a specific purpose:
🚀 Revali (Development Tool)#
The core framework that orchestrates your entire development experience — including generating your server's code. No separate code-generator package to add.
dart pub add revali --dev
Why it's needed: Revali provides the build system, CLI tools, development server, and server code generation that make everything work together seamlessly.
🛣️ Revali Router (Runtime)#
The routing engine that handles all HTTP requests and responses.
dart pub add revali_router
Why it's needed: This is the heart of your server - it processes incoming requests, matches them to your controllers, and sends back responses.
Manual Installation#
If you prefer to add dependencies manually, here's what your pubspec.yaml should look like:
dependencies:
revali_router: <latest> # Runtime routing
dev_dependencies:
revali: <latest> # Development framework + server code generation
What's Next?#
Now that you have Revali Server installed, you're ready to:
- Use the CLI - Learn about the powerful command-line tools
- Create your first endpoint - Build your first API endpoint
- Run your server - Start developing and see your changes live
Ready to dive in? Let's start with the CLI tools!