Skip to content

Commit 4946ad5

Browse files
committed
Make Consistent
1 parent 1e42ca5 commit 4946ad5

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎content/en/labs/a2.initialize-the-server.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ slug: initialize-the-server
55

66
## Create New Workspace
77

8+
> [!tip]
9+
> We build an Axum based web service inside the `book_service` crate within the `rest_api_workspace` Rust workspace.
10+
811
Run following commands to create the workspace.
912

1013
```shell
1114
mkdir rest_api_workspace && cd rest_api_workspace
1215
echo -e "[workspace]\nresolver = \"3\"" > ./Cargo.toml
1316
cargo new crates/book_service
14-
mkdir crates/book_service/src/bin && mv crates/book_service/src/main.rs crates/book_service/src/bin/app.rs
17+
mkdir crates/book_service/src/bin
18+
mv crates/book_service/src/main.rs crates/book_service/src/bin/app.rs
1519
```
1620

1721
Then manually update `book_service/Cargo.toml` to add `default-run` and `[[bin]]`.

‎content/en/labs/a4.database-and-db-migrations.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ slug: database-and-db-migrations
55

66
## Database Design
77

8+
> [!tip]
9+
> - To keep this series simple, we use only a single Postgres database table named `books`.
10+
> - We order fixed-width table columns by decreasing alignment requirements to optimize using Column Tetris.
11+
> - We map `TIMESTAMPTZ`, `DATE`, `UUID` types to `jiff::{Timestamp, civil::Date}`, `uuid::Uuid` Rust types.
12+
813
| Column Name | Datatype | Not Null | Primary Key |
914
|----------------|-------------|----------|-------------|
1015
| created_at | TIMESTAMPTZ | ✅ | |

0 commit comments

Comments
 (0)