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

ExampleDescription
Basic Application ExampleA minimalist Navius application demonstrating core concepts
Custom Service ExampleHow to create and register custom services
Database Service ExampleUsing the database service for data persistence
Cache Provider ExampleWorking with the cache provider for improved performance
Two-Tier Cache ExampleImplementing multi-level caching strategies
Health Service ExampleImplementing application health checks
Configuration ExampleWorking with configuration in Navius applications
Error Handling ExampleBest practices for error handling
Dependency Injection ExampleUsing dependency injection in Navius
REST API ExampleBuilding REST APIs with Navius
GraphQL ExampleBuilding GraphQL APIs with Navius

Running the Examples

Each example can be run from its own directory. To run an example:

  1. Clone the Navius repository
  2. Navigate to the example directory
  3. 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: