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
A sample **Actix Web** application demonstrating integration with **ClickHouse** using the [klickhouse](https://github.com/katanacap/klickhouse) library. This example covers essential aspects of building a web service in Rust, including routing, middleware, and database connectivity.
4
10
@@ -24,8 +30,8 @@ A sample **Actix Web** application demonstrating integration with **ClickHouse**
24
30
25
31
## Getting Started
26
32
27
-
### Prerequisites
28
-
-**Devenv** (for running the application under development environment)
33
+
### Prerequisites 🛠️
34
+
-**Devenv**- https://devenv.sh/(for running the application under development environment)
29
35
30
36
### Installation
31
37
@@ -46,9 +52,17 @@ A sample **Actix Web** application demonstrating integration with **ClickHouse**
46
52
3.**Access the application**:
47
53
- Open your browser and navigate to `http://localhost:1337/health` to check if the application is running.
48
54
- Open your browser and navigate to `http://localhost:1337/logs?limit=10&offset=0` to view the logs.
55
+
56
+
4.**Run tests + all rust checks**:
57
+
```bash
58
+
// cargo test/fmt/clippy/audit/outdated
59
+
just
60
+
// only tests
61
+
just test
62
+
```
49
63
50
64
51
-
### Endpoints:
65
+
### API Endpoints 📡:
52
66
- GET /: example endpoint to check request id logic
53
67
- GET /logs: Fetch logs from ClickHouse (optional query params for pagination).
54
68
- GET /health: Basic health check.
@@ -62,14 +76,13 @@ A sample **Actix Web** application demonstrating integration with **ClickHouse**
62
76
-`confik.toml`: Configuration file for the application.
63
77
-`.env`: Environment variables for the application (optional).
0 commit comments