A modern, high-performance ASGI web framework starter template built with Nexios - the next-generation Python web framework designed for speed, flexibility, and simplicity with Rust-powered performance.
- ποΈ ASGI Architecture - Built for async/await from the ground up
- π Dependency Injection - Modern DI system for clean, testable code
- π Auto Documentation - Automatic OpenAPI/Swagger generation
- π‘οΈ Security Built-in - JWT, API Key authentication, CORS, CSRF protection
- π WebSocket Support - Real-time communication out of the box
- π― Pydantic Integration - Type-safe data validation and serialization
- π£οΈ Flexible Routing - Express.js-like routing with modern Python features
- π§ͺ Testing Utilities - Comprehensive testing framework integration
- π Pagination - Built-in pagination support
- β‘ HTTP/2 Support - Latest web protocol support
- π Session Management - Secure session handling
- π¨ Custom Decorators - Extensible middleware and decorators
- Python 3.10+
- pip or uv package manager
# Clone the repository
git clone https://github.com/nexios-labs/nexios-bootstrap.git
cd nexios-bootstrap
# Install dependencies
pip install -r requirements.txt
# Or using uv (recommended)
uv pip install -r requirements.txt
# Run development server
make dev# Build and run with Docker
make docker-up
# Or manually
docker-compose up -dnexios-bootstrap/
βββ src/ # Source code
β βββ api/ # API routes
β β βββ health/ # Health check endpoints
β βββ core/ # Core application logic
β β βββ middleware/ # Custom middleware
β β βββ database.py # Database configuration
β βββ models/ # Database models
β βββ utils/ # Utility functions
β βββ main.py # Application entry point
βββ tests/ # Test suite
βββ scripts/ # Utility scripts
βββ docker-compose.yml # Development environment
βββ docker-compose.prod.yml # Production environment
βββ Dockerfile # Container configuration
βββ Makefile # Build automation
βββ requirements.txt # Dependencies
βββ pyproject.toml # Project configuration
βββ README.md # This file
Basic health check endpoint.
Response:
{
"status": "ok",
"service": "nexios-starter",
"timestamp": "2024-02-20T12:00:00Z",
"version": "0.1.0"
}Advanced health check with async counting functionality.
Request:
{
"service_name": "my-service",
"include_details": true,
"start_number": 1,
"end_number": 10,
"step": 2
}Response:
{
"status": "ok",
"service": "my-service",
"timestamp": "2024-02-20T12:00:00Z",
"version": "0.1.0",
"check_type": "basic",
"counting_result": {
"start": 1,
"end": 10,
"step": 2,
"numbers": [1, 3, 5, 7, 9],
"total_count": 5
},
"details": {
"database": "connected",
"cache": "available",
"external_apis": "responsive"
}
}- PostgreSQL - Production-ready with connection pooling
- SQLite - Development and testing (default fallback)
# PostgreSQL (recommended)
DATABASE_URL=postgres://user:password@localhost:5432/nexios
# Or individual settings
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=password
DB_NAME=nexios
# Application
APP_ENV=development
DEBUG=true# Run all tests
pytest tests/
# Run with coverage
pytest tests/ --cov=src --cov-report=html
# Verbose output
pytest tests/ -v# Build and run with Docker
docker-compose up -d
# Stop services
docker-compose down# Format code
ruff format src/ tests/
# Lint code
ruff check src/ tests/
# Install dependencies
pip install -r requirements.txt- Nexios Docs: https://nexios-labs.github.io/nexios/
- API Reference: https://nexios-labs.github.io/nexios/api-reference/
- Examples: https://nexios-labs.github.io/nexios/examples/
- Main Repository: https://github.com/nexios-labs/nexios
- Bootstrap Template: https://github.com/nexios-labs/nexios-bootstrap
The application includes:
- CORS Middleware - Cross-origin request handling
- Logging Middleware - Request/response logging
Automatic request/response logging with:
- HTTP method and URL
- Origin tracking
- Response status codes
We welcome contributions! Please see our Contributing Guide.
# Fork and clone
git clone https://github.com/your-username/nexios-bootstrap.git
cd nexios-bootstrap
# Install dependencies
pip install -r requirements.txt
# Create feature branch
git checkout -b feature/amazing-feature
# Make changes and test
pytest tests/
ruff check src/ tests/This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Nexios framework
- Inspired by modern web framework best practices
- π Documentation
- π Issues
- π¬ Discussions
β Star this repository if it helped you!
Built with β€οΈ using Nexios
