Some checks failed
CI/CD Pipeline / Test Suite (push) Has been cancelled
CI/CD Pipeline / Security Audit (push) Has been cancelled
CI/CD Pipeline / Build Docker Image (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Performance Benchmarks (push) Has been cancelled
CI/CD Pipeline / Cleanup (push) Has been cancelled
62 lines
1.2 KiB
Markdown
62 lines
1.2 KiB
Markdown
---
|
|
title: Getting Started with Rustelo
|
|
slug: getting-started-with-rustelo
|
|
date: 2024-01-15
|
|
author: Rustelo Team
|
|
category: tutorials
|
|
tags: [rust, web, tutorial, getting-started]
|
|
excerpt: Learn how to create your first web application with Rustelo framework
|
|
---
|
|
|
|
# Getting Started with Rustelo
|
|
|
|
Welcome to Rustelo! This guide will help you create your first web application using our modern Rust web framework.
|
|
|
|
## Prerequisites
|
|
|
|
Before you begin, make sure you have the following installed:
|
|
|
|
- Rust (latest stable version)
|
|
- cargo-leptos
|
|
- Node.js (for asset building)
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
# Clone the Rustelo template
|
|
git clone https://github.com/rustelo/rustelo-template my-app
|
|
cd my-app
|
|
|
|
# Install dependencies
|
|
cargo build
|
|
npm install
|
|
```
|
|
|
|
## Creating Your First App
|
|
|
|
1. **Project Structure**
|
|
|
|
```
|
|
my-app/
|
|
├── crates/
|
|
│ ├── client/ # Frontend code
|
|
│ ├── server/ # Backend code
|
|
│ ├── shared/ # Shared types
|
|
│ └── ssr/ # SSR components
|
|
```
|
|
|
|
2. **Running the Development Server**
|
|
|
|
```bash
|
|
just dev
|
|
```
|
|
|
|
Your app will be available at `http://localhost:3000`
|
|
|
|
## Next Steps
|
|
|
|
- Explore the [documentation](/docs)
|
|
- Check out example projects
|
|
- Join our community
|
|
|
|
Happy coding with Rustelo! |