Guides
Task-oriented walkthroughs for routing, middleware, validation, testing, and more in NextRush
Task-oriented guides for building applications with NextRush. Each guide walks you through a specific goal with verifiable steps.
Available Guides
Building REST APIs
Create a REST API with routing, services, and response formatting.
Class-Based Controllers
Build structured APIs with decorators, dependency injection, and automatic route registration.
Dev Tools
Set up the development server and build tools with decorator metadata support.
Error Handling
Handle errors with HTTP error classes and error-handling middleware.
Request Validation
Validate and transform request data with Zod schemas.
Custom Middleware
Write middleware for logging, authentication, caching, and request processing.
Testing
Test handlers, middleware, and services with Vitest.
Coming from Express
Migrate your Express app to NextRush — concept mapping and step-by-step migration.
Deployment
Deploy to Docker, Railway, Fly.io, Vercel Edge, and Cloudflare Workers.
Security
Harden your API with helmet, CORS, rate limiting, and input validation.
Learning Path
If you're new to NextRush, follow one of these paths based on your preferred style.
Functional Style
| Step | Guide | What You'll Learn |
|---|---|---|
| 1 | REST APIs | Project structure, routing, services |
| 2 | Error Handling | HTTP errors, error middleware |
| 3 | Validation | Input validation with Zod |
| 4 | Custom Middleware | Auth, logging, rate limiting |
| 5 | Testing | Unit and integration tests |
Class-Based Style
| Step | Guide | What You'll Learn |
|---|---|---|
| 1 | Dev Tools | Build tools for decorators |
| 2 | Class-Based Controllers | DI, decorators, controllers |
| 3 | Error Handling | HTTP errors, error middleware |
| 4 | Validation | Input validation with Zod |
| 5 | Testing | Unit and integration tests |