Tutorials
Step-by-step tutorials that guide you through building complete applications with Wren-CLI. Each tutorial introduces new concepts and builds upon previous knowledge.
Building an HTTP Client
Learn to make HTTP requests, parse JSON responses, and handle errors while building a REST API client.
WebSocket Chat Application
Build a real-time chat application using WebSockets with both client and server components.
Database Application
Create a complete CRUD application using SQLite for persistent data storage.
Dataset ORM
Master the dataset module for effortless database operations with automatic schema management.
Template Rendering
Use Jinja templates to generate HTML pages, reports, and configuration files.
Building a CLI Tool
Create a command-line application with argument parsing, user input, and subprocess management.
Building a Web Server
Build HTTP servers with routing, sessions, middleware, and REST APIs using the web module.
Learning Path
If you are new to Wren-CLI, we recommend following the tutorials in this order:
- HTTP Client - Introduces async operations and JSON handling
- Database Application - Covers raw SQLite data persistence
- Dataset ORM - Effortless database operations with automatic schema
- Template Rendering - Learn the Jinja template system
- WebSocket Chat - Advanced async patterns with fibers
- CLI Tool - Bringing it all together in a real application
- Web Server - Build complete web applications with the web module
Prerequisites
Before starting the tutorials, you should:
- Have Wren-CLI installed
- Understand the basic syntax
- Be familiar with classes and methods