You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-2Lines changed: 35 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,23 @@
1
1
# RustWebApp
2
2
3
-
Welcome to Juras... I mean RustWebApp! A multiplayer puzzle games platform.
3
+
Welcome to RustWebApp! An early-stage but solid template repository for building modern web applications using Rust on the server and SvelteJS on the frontend with an islands architecture.
4
+
5
+
# Architecture
6
+
7
+
This template implements a modern web application architecture with:
8
+
9
+
-**Backend**: Rust with Axum web framework, providing high-performance API endpoints
10
+
-**Frontend**: SvelteJS with TypeScript, offering reactive UI components
11
+
-**Database**: PostgreSQL with Diesel ORM for type-safe database operations
12
+
-**Authentication**: JWT-based authentication system
13
+
-**Deployment**: Docker containerization with Fly.io deployment support
14
+
-**Development**: Hot reload for both frontend and backend development
15
+
16
+
The template follows an islands architecture pattern, allowing for server-side rendering with selective client-side hydration where needed.
4
17
5
18
# Developer Setup
6
19
7
-
RustWebApp can be developed locally on your host of choice, or, entirely on Docker. We minimally use Docker to run local development databases.
20
+
This template provides a solid foundation for building web applications with Rust backend and SvelteJS frontend. While still in early development, it includes the essential components needed to get started. It can be developed locally on your host of choice, or entirely on Docker. We minimally use Docker to run local development databases.
8
21
9
22
> 🪟 **Windows** - I highly recommend using WSL - the Windows Subsystem for Linux, which Docker can also use for it's backend.
10
23
>
@@ -62,8 +75,28 @@ Hi YOUR_USER_NAME! You've successfully authenticated, but GitHub does not provid
2. **Set up your development environment** (see Developer Setup below)
85
+
3. **Start the development servers**:
86
+
```shell
87
+
docker-compose up
88
+
```
89
+
4. **Access your application**:
90
+
- Frontend: http://localhost:5173
91
+
- Backend API: http://localhost:3000
92
+
5. **Customize the template**:
93
+
- Update the application name and branding
94
+
- Modify the database schema in `server/migrations/`
95
+
- Add new API endpoints in `server/src/web/routes/`
96
+
- Create new Svelte components in `client/src/lib/components/`
97
+
98
+
> ⚠️ **Note**: This template is still in early development. While it provides a solid foundation, you may encounter rough edges or missing features. Contributions and feedback are welcome!
0 commit comments