https://github.com/hojas/rust-forum-server
A light forum server built with axum, a Rust web framework.
https://github.com/hojas/rust-forum-server
axum diesel forum postgresql rust
Last synced: 23 days ago
JSON representation
A light forum server built with axum, a Rust web framework.
- Host: GitHub
- URL: https://github.com/hojas/rust-forum-server
- Owner: hojas
- License: mit
- Created: 2023-04-06T09:41:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-02T04:20:40.000Z (over 2 years ago)
- Last Synced: 2025-04-14T02:33:09.301Z (6 months ago)
- Topics: axum, diesel, forum, postgresql, rust
- Language: Rust
- Homepage:
- Size: 137 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-forum-server
A light forum server built with axum, a Rust web framework.
## Features
- Auth Module
- User Module
- Post Module
- Comment Module## Development
```shell
$ cargo run
```## Migration
**1. Setup**
```shell
$ diesel setup
```**2. Create migration**
```shell
$ diesel migration generate create_users
```**3. Write SQL in `up.sql` and `down.sql`**
**4. Run migration**
```shell
$ diesel migration run
$ diesel migration redo
```Reference: https://diesel.rs/guides/getting-started