salvo-basic-app

Scaffold basic Salvo web apps with handlers, routers, and server setup.

1|Updated Mar 16, 2024
One-click install
npx skills add https://github.com/tdcare/genies --skill salvo-basic-app-tdcare
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: salvo-basic-app
Source: https://github.com/tdcare/genies/tree/main/.qoder/skills/salvo-basic-app
Command: npx skills add https://github.com/tdcare/genies --skill salvo-basic-app-tdcare

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a ready-to-use scaffold for building basic Salvo web applications, including handlers, routers, and a minimal server setup, so you can start new projects quickly without configuring boilerplate from scratch.

Core Features & Use Cases

  • Handler definitions using #[handler] macro for async functions.
  • Router configuration with Router::new(), .get(), and .push for nested routes.
  • Server bootstrapping with TcpListener and Server for a runnable HTTP service.
  • Examples of common response types like Json, Text, Html, and Redirect to illustrate typical endpoints.

Quick Start

Create a new Salvo project skeleton and run the included example server to expose a basic Hello endpoint.

Frequently Asked Questions about salvo-basic-app

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bootstrap a basic Salvo web app in Rust?▼

To bootstrap a basic Salvo web app, this scaffold provides a ready-to-use project skeleton with example handlers, routers, and a minimal server setup so you can start new projects quickly without configuring boilerplate.

How does a Salvo handler and router work?▼

A Salvo handler works by declaring async functions with the #[handler] macro, while the router is configured using Router::new() with .get() and .push() methods to define nested routes for incoming HTTP requests.

What's the best way to return common HTTP responses using Salvo?▼

The best way to return common HTTP responses using Salvo is to utilize its built-in response types like Json, Text, Html, and Redirect, which are illustrated in the scaffold's example endpoints.

Can I use TcpListener and Server to run a Salvo web application?▼

Yes, you can use TcpListener and Server to run a Salvo web application. The scaffold demonstrates server bootstrapping with these components to create a runnable HTTP service.

Do I need to configure boilerplate from scratch to start a new Salvo project?▼

No, you do not need to configure boilerplate from scratch to start a new Salvo project. This scaffold solves that problem by providing a ready-to-use structure for handlers, routers, and server setup.