Commit graph

19 commits

Author SHA1 Message Date
Magnus Hoff
0a3cb53a66 Add NewArticleResource
Serve placeholder page for non-existing articles.
Redirect user-generated slugs to canonical slugs.
2017-09-21 10:58:54 +02:00
Magnus Hoff
debf44623c Automatically generate slugs for articles based on title 2017-09-20 23:31:25 +02:00
Magnus Hoff
e1d823d22e Implement lookup and redirect of articles by slugs 2017-09-20 11:54:26 +02:00
Magnus Hoff
573195d09c Code splitting 2017-09-15 17:28:23 +02:00
Magnus Hoff
53c4ff1b5c Extract CSS and JS from templates and serve as static assets 2017-09-15 14:54:47 +02:00
Magnus Hoff
320ec98d65 Take CPU pool as dependency for State 2017-09-10 12:29:33 +02:00
Magnus Hoff
6fb1062376 Execute State functions in thread pool 2017-09-08 16:21:24 +02:00
Magnus Hoff
1a5b39b3a1 Implement editing 2017-09-05 17:07:57 +02:00
Magnus Hoff
60a87d1898 Introduce db connection pool. Derive Clone for State 2017-09-05 15:19:37 +02:00
Magnus Hoff
405b203bc7 Some layout and styling 2017-09-02 15:26:28 +02:00
Magnus Hoff
76302353e1 HTTP handling refactoring.
Refactor to lookup/route and resource abstractions.

Bake in futures/async support.

Implement more of the HTTP standard.
2017-08-25 23:57:06 +02:00
Magnus Hoff
62812c2ddf Print helpful message on startup 2017-08-22 16:40:18 +02:00
Magnus Hoff
df63c25646 Run migrations on start, not on every connection 2017-08-22 09:37:40 +02:00
Magnus Hoff
35e7bad7d2 Simple rendering of stubbed article 2017-08-20 22:17:16 +02:00
Johannes Hoff
139a5b51b6 Propage database connections; dispatch requests 2017-08-20 21:59:16 +02:00
Magnus Hoff
9eb48f7ddc Trivial HTTP response 2017-08-20 20:46:08 +02:00
Magnus Hoff
aae43917e2 Introduce core_main 2017-08-20 20:40:08 +02:00
Johannes Hoff
bc76506ebc Add a web server 2017-08-20 20:24:10 +02:00
Magnus Hoff
3abc3cd68a Skeleton with clap and sqlite database 2017-08-19 22:48:51 +02:00