title: "README" description: "" category: "Documentation" tags: [] last_updated: "March 28, 2025" version: "1.0"
title: "Navius Examples" description: "Usage examples for the Navius Framework" category: examples tags:
- examples
- usage
- patterns last_updated: March 27, 2025 version: 1.0
Navius Examples
This directory contains examples demonstrating how to use the Navius framework for building robust, maintainable applications with Rust.
Available Examples
Example | Description |
---|---|
Basic Application Example | A minimalist Navius application demonstrating core concepts |
Custom Service Example | How to create and register custom services |
Database Service Example | Using the database service for data persistence |
Cache Provider Example | Working with the cache provider for improved performance |
Two-Tier Cache Example | Implementing multi-level caching strategies |
Health Service Example | Implementing application health checks |
Configuration Example | Working with configuration in Navius applications |
Error Handling Example | Best practices for error handling |
Dependency Injection Example | Using dependency injection in Navius |
REST API Example | Building REST APIs with Navius |
GraphQL Example | Building GraphQL APIs with Navius |
Running the Examples
Each example can be run from its own directory. To run an example:
- Clone the Navius repository
- Navigate to the example directory
- Follow the specific instructions in the example's README.md file
For most examples, you can run them with:
cargo run
Some examples may require additional setup, such as a database connection or environment variables.
Getting Help
If you have questions about these examples, please:
- Check the Navius documentation
- Open an issue on the Navius GitHub repository
- Join the Navius Discord community