# Nexios Examples

This section contains practical examples demonstrating various features of the Nexios framework.

## Core Examples

- [Basic REST API](./core/basic-rest-api.md)
- [Form Validation](./core/form-validation.md)
- [File Upload](./core/file-upload.md)
- [Streaming Middleware](./core/streaming-middleware.md)

## Authentication

- [Session Authentication](./auth/session.md)
- [JWT Authentication](./auth/jwt.md)
- [OAuth2 Integration](./auth/oauth2.md)

## Database Integration

- [SQL Database](./database/sql.md)
- [MongoDB Integration](./database/mongodb.md)
- [Redis Caching](./database/redis.md)

## WebSockets

- [Basic WebSocket](./websockets/basic.md)
- [Chat Application](./websockets/chat.md)
- [Real-time Updates](./websockets/realtime.md)

## Middleware Examples

- [Authentication Middleware](./middleware/auth.md)
- [CORS Middleware](./middleware/cors.md)
- [Rate Limiting](./middleware/rate-limit.md)
- [Request Logging](./middleware/logging.md)

## Validation

- [Request Validation](./validation/request.md)
- [Form Validation](./validation/form.md)
- [Custom Validators](./validation/custom.md)

## Error Handling

- [Global Error Handlers](./exception_handling/global.md)
- [Custom Exceptions](./exception_handling/custom.md)
- [Error Response Formatting](./exception_handling/formatting.md)

## Routing Examples

- [URL Parameters](./routing/parameters.md)
- [Query Parameters](./routing/query.md)
- [Nested Routers](./routing/nested.md)
- [Route Groups](./routing/groups.md)

Each example includes:
- Complete working code
- Step-by-step explanations
- Best practices
- Common pitfalls to avoid
- Security considerations

::: tip
All examples are available in the [examples](https://github.com/yourusername/nexios/tree/main/examples) directory of the Nexios repository.
::: 