Overview:
The document provides a detailed guide on setting up various tools for development processes, including installation instructions for cargo-mobile2, cargo-watch, bun, @material-tailwind/html, Supabase Auth, Database integration using PostgreSQL and Diesel CLI, and Supabase Storage. It also offers guidance on running the API server, building for different platforms such as Web and Desktop, and lists necessary prerequisites for development.
Features:
- Cargo-mobile2 Installation: Enables mobile development environments using cargo.
- Cargo-watch Installation: Facilitates automatic code reloading during development using cargo.
- Bun Installation: Installs bun tool for various development tasks, including deployment and management.
- @material-tailwind/html Installation: Aids in integrating Material Tailwind CSS styles.
- Supabase Auth Setup: Guides on setting up authentication, database integration, and media storage with Supabase.
- Database Integration: Includes instructions on PostgreSQL setup, Diesel CLI installation, and running migrations.
- Supabase Storage Configuration: Details steps to create and configure storage buckets within Supabase for file management.
Installation:
- Install cargo-mobile2 using
cargo install --git https://github.com/tauri-apps/cargo-mobile2 - Install cargo-watch using
cargo install cargo-watch - Install bun using
curl -fsSL https://bun.sh/install | bashorpowershell -c "irm bun.sh/install.ps1 | iex" - Install @material-tailwind/html using
bun install - Setup Supabase Auth by copying
.env.exampleto.envand filling in Supabase credentials. - Configure Database by adding PostgreSQL connection string to
.envand installing Diesel CLI. - Setup Supabase Storage by creating buckets and configuring access for authenticated users.
- Run the API server with
bun apiorcargo runfor the API folder. - Compile and run Web app with
bun webordx serve. - Compile Desktop app by installing prerequisites and setting up the environment variables.
Summary:
The document provides a comprehensive guide for developers to set up essential tools and services for efficient development processes. From mobile development environments to database integration and storage configurations, the instructions cover a wide range of tasks necessary for backend and frontend development. By following the outlined steps, developers can streamline their development workflow and ensure smooth integration of necessary technologies.