t5.rs is a comprehensive and opinionated full-stack application template designed for developers who want to leverage Rust's performance and safety. Featuring essential tools like Dioxus, Diesel, and Supabase Auth, this template simplifies mobile and web integration, allowing you to focus on building remarkable applications efficiently.
Overview
The t5.rs project is an opinionated, cross-platform full-stack application template crafted with the superior performance of Rust. This innovative template seamlessly integrates with powerful tools such as Cargo Mobile 2, Dioxus, Warp, Diesel, and PostgreSQL, alongside Supabase Auth, Bun, and TailwindCSS. It draws its inspiration from the project t4-app, aiming to bring the advantages of Rust to full-stack application development.
Key Features
- Cross-Platform Compatibility: Built for a wide range of platforms such as Web, Desktop, and Android.
- Modern Tech Stack: Employs cutting-edge technologies like PostgreSQL for database management and Supabase for user authentication and storage.
- Stylish and Responsive: Utilizes TailwindCSS for designing responsive and aesthetically pleasing user interfaces.
Architecture
The architecture of t5.rs empowers developers to quickly launch and manage scalable applications using a combination of high-efficiency Rust modules:
- API Layer: Powered by Warp for high-performance handling of server requests.
- Database Integration: Leverages Diesel ORM for smooth interactions with the PostgreSQL database.
- User Authentication: Simplifies user management and authentication using Supabase.
Getting Started
Once you set up your environment, you can easily dive into development, run the API server, and begin building your application. The following commands serve as basic examples:
# Run the API server
bun api
# Compile and run the web app
bun web
# Compile and run the desktop app
bun desktop
# Compile and run the Android app
bun android
Comprehensive Setup
For seamless development, t5.rs includes clear setup instructions for configuring various components such as Supabase Auth and database connectivity. You can customize aspects like URLs and API keys by modifying the .env
file, ensuring quick adjustments according to your project's needs.
Optimized for Production
T5.rs is designed not only for development but also for efficient deployment. With suggested build optimizations and the integration of GitHub Actions, deploying both your API and web applications is streamlined. Instructions are provided to set environment variables, allowing you to secure your application credentials easily.
Conclusion
Whether you're building a new application from scratch or enhancing an existing project, t5.rs provides a robust foundation for full-stack development with Rust. Start your journey today, and leverage the power of modern tools to create responsive and efficient applications!