-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start
GitHub Actions edited this page Jan 25, 2026
·
2 revisions
5 Minuten bis zu deinem ersten API-Endpoint!
# Beide Befehle funktionieren:
velin new my-api
# oder
velin init my-api
cd my-apiÖffne main.velin und schreibe:
@GET("/api/hello")
fn hello(): string {
return "Hello, VelinScript! 🚀";
}
velin compile -i main.velin -o main.rsvelin check -i main.velin# Rust-Code kompilieren
cd ..
cargo build --release --manifest-path my-api/Cargo.toml
# Ausführen
cargo run --release --manifest-path my-api/Cargo.tomlDeine API läuft jetzt auf http://localhost:8080/api/hello
-
API-Key setzen:
# Windows $env:OPENAI_API_KEY = "sk-..." # Linux/Mac export OPENAI_API_KEY="sk-..."
-
Code erweitern:
@POST("/api/chat") fn chat(message: string): string { let llm = LLMClient.new("openai", config.get_env("OPENAI_API_KEY", "")); return await llm.generate(message); }
Siehe API-Keys Setup für Details.
- Getting Started Guide - Vollständige Anleitung
- Tutorials - Schritt-für-Schritt Tutorials
- Beispiele - Code-Beispiele
- API-Referenz - Alle Funktionen
- Dokumentations-Übersicht - Alle Dokumente
- Häufige Probleme - Lösungen
- Forum - Community-Support
Version: 3.1.0
- Compiler Architecture
- Pass-Verlauf
- Type Inference
- Code Ordering
- IR Representation
- Borrow Checker
- Code Generation
- Multi-Target Compilation
- Module Resolution
- Framework Integration
- Parallelization
- AI Compiler Passes
- Prompt Optimizer
- System Generation
- Basics
- APIs
- Security
- Database
- Validation
- Authentication
- ML/LLM
- Intelligence Features
- Type Inference
- ML Training
- Pattern Matching
- Closures
- Collections
- HTTP Client
- String Interpolation
- Debugger
- Vektor-Datenbanken
- CLI Reference
- API Keys Setup
- Advanced
- Backend
- Security Best Practices
- AI/ML
- Auto Imports
- Plugin Development