|
1 | | -# RustChan |
2 | 1 |
|
3 | | -Un imageboard匿名 (style 4chan) écrit en Rust. |
| 2 | +# RustChan |
4 | 3 |
|
| 4 | +An anonymous imageboard (4chan style) written in Rust. |
5 | 5 |
|
6 | 6 |  |
7 | 7 |
|
8 | 8 | ## Stack |
9 | 9 |
|
10 | | -- **Backend** : Rust + Axum |
11 | | -- **Base de données** : SQLite (sqlx) |
12 | | -- **Templates** : Tera |
13 | | -- **Async** : Tokio |
| 10 | +- **Backend**: Rust + Axum |
| 11 | +- **Database**: SQLite (sqlx) |
| 12 | +- **Templates**: Tera |
| 13 | +- **Async**: Tokio |
14 | 14 |
|
15 | 15 | ## Installation |
16 | 16 |
|
17 | 17 | ```bash |
18 | | -# Compiler le projet |
| 18 | +# Build the project |
19 | 19 | cargo build |
20 | 20 |
|
21 | | -# Lancer le serveur |
| 21 | +# Run the server |
22 | 22 | cargo run |
23 | 23 |
|
24 | | -# Avec un port personnalisé |
| 24 | +# With a custom port |
25 | 25 | PORT=3001 cargo run |
26 | 26 | ``` |
27 | 27 |
|
28 | 28 | ## Structure |
29 | 29 |
|
30 | 30 | ``` |
31 | 31 | src/ |
32 | | - main.rs # Point d'entrée, routes |
33 | | - db/ # Opérations base de données |
34 | | - handlers/ # Gestionnaires HTTP |
35 | | - models/ # Structures de données |
36 | | -templates/ # Templates Tera |
| 32 | + main.rs # Entry point, routes |
| 33 | + db/ # Database operations |
| 34 | + handlers/ # HTTP handlers |
| 35 | + models/ # Data structures |
| 36 | +templates/ # Tera templates |
37 | 37 | static/ # CSS, images |
38 | | -uploads/ # Images uploadées |
| 38 | +uploads/ # Uploaded images |
39 | 39 | ``` |
40 | 40 |
|
41 | | -## Fonctionnalités |
| 41 | +## Features |
42 | 42 |
|
43 | | -- Création et gestion de boards |
44 | | -- Threads et posts avec/sans images |
45 | | -- Panel d'administration |
46 | | -- Upload d'images |
47 | | -- Système d'authentification admin |
| 43 | +- Board creation and management |
| 44 | +- Threads and posts with/without images |
| 45 | +- Administration panel |
| 46 | +- Image uploading |
| 47 | +- Admin authentication system |
48 | 48 |
|
49 | | -## Commandes utiles |
| 49 | +## Useful commands |
50 | 50 |
|
51 | 51 | ```bash |
52 | | -# Vérifier le code sans compiler |
| 52 | +# Check the code without compiling |
53 | 53 | cargo check |
54 | 54 |
|
55 | 55 | # Linter |
56 | 56 | cargo clippy |
57 | 57 |
|
58 | | -# Formater le code |
| 58 | +# Format the code |
59 | 59 | cargo fmt |
60 | 60 | ``` |
61 | 61 |
|
62 | | - |
63 | | - |
64 | 62 |  |
| 63 | + |
65 | 64 |  |
0 commit comments