76 Commits

Author SHA1 Message Date
Chris Tsang
349108dad6 Update examples 2021-10-16 02:10:32 +08:00
Chris Tsang
ab8fec21b3 Fix build errors 2021-10-04 12:09:50 +08:00
Chris Tsang
5c0a5be9ad Readme 2021-10-02 14:20:49 +08:00
Chris Tsang
50a8ae41c0 Tweaks 2021-10-01 11:11:48 +08:00
Chris Tsang
6861802a6d Update Rocket & Actix examples 2021-09-22 18:02:50 +08:00
Chris Tsang
aec111e035 Tweaks 2021-09-21 18:32:54 +08:00
Chris Tsang
2346d0beb8 Cargo fmt 2021-09-21 18:19:52 +08:00
Chris Tsang
547429c377 Sort by id 2021-09-21 18:19:21 +08:00
Chris Tsang
d6f0d3c35a Fix clippy warnings 2021-09-21 18:13:48 +08:00
Chris Tsang
6d9727050e Use compact Entity format 2021-09-21 18:13:35 +08:00
Chris Tsang
f7b42ebc0e Clean up Cargo.toml 2021-09-21 18:04:26 +08:00
Sam Samai
ac8d84ea44 Just clone the state for each thread 2021-09-21 18:21:55 +10:00
Sam Samai
8a618f88c7 Start from page 1 2021-09-20 21:00:51 +10:00
Sam Samai
daa5ff77c0 Define SharedState type 2021-09-20 20:55:22 +10:00
Sam Samai
31bc662f3f Use Arc to pass database connection to requests 2021-09-19 21:16:43 +10:00
Sam Samai
d623474d7c Refactor flash 2021-09-17 20:17:17 +10:00
Sam Samai
8b46a89e2c Add flash messages 2021-09-16 22:47:11 +10:00
Sam Samai
237dcaa6a9 Delete post 2021-09-12 21:08:39 +10:00
Sam Samai
c427e4e89b Edit post 2021-09-12 19:21:01 +10:00
Sam Samai
f97c081c2a Add new post 2021-09-12 17:12:20 +10:00
Sam Samai
5d7a9ca782 Extend from layout.html.tera 2021-09-12 16:41:03 +10:00
Sam Samai
2e8016d23c List posts with pagination 2021-09-12 16:35:43 +10:00
Sam Samai
fcacae04b8 Use DATABASE_URL from .env file 2021-09-12 11:56:51 +10:00
Sam Samai
1ba6b0b647 List posts from the DB 2021-09-12 11:39:53 +10:00
Sam Samai
8f3a45e6ae Use tera template and serve static assets 2021-09-12 10:07:00 +10:00
Sam Samai
1c1283ca66 Actix example init 2021-09-11 17:02:59 +10:00