Commit graph

230 commits

Author SHA1 Message Date
Magnus Hoff
50b9ebf59e Make State::update_article return a Future.
In preparation for threading
2017-09-08 15:37:58 +02:00
Magnus Hoff
db4f18807d Simplify by removing genericity.
Nothing to be generic over
2017-09-08 14:46:18 +02:00
Magnus Hoff
6f94b2f960 Silence some warnings 2017-09-08 14:43:47 +02:00
Magnus Hoff
64737b44e5 Tweaks 2017-09-06 23:22:34 +02:00
Magnus Hoff
3ce6e255f2 Use the bundled/statically linked variant of libsqlite3, to make a more self-contained binary 2017-09-06 16:14:43 +02:00
Magnus Hoff
144041a3a7 Implement cancel-action 2017-09-06 11:07:01 +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
5a859e5c33 Dispatch PUT to ArticleResource 2017-09-05 12:05:56 +02:00
Magnus Hoff
7946a6f321 Tweaks.
Use urlencoded data for sending to server.

Improve outlook for progressive enhancement.

Add Cancel-link
2017-09-05 11:41:37 +02:00
Magnus Hoff
0bc4c69579 Keep textarea automatically sized to fit its contents 2017-09-04 13:47:12 +02:00
Magnus Hoff
84b97efa9d Treat HTML in markdown source as text to be escaped for output 2017-09-03 21:33:04 +02:00
Magnus Hoff
2177cd7504 Start implementing editor 2017-09-02 15:32:59 +02:00
Magnus Hoff
405b203bc7 Some layout and styling 2017-09-02 15:26:28 +02:00
Magnus Hoff
94758adaf4 Make Resource::get consume self, for copyless futures 2017-09-01 12:32:30 +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
d93501cb00 README.md 2017-08-21 16:49:31 +02:00
Magnus Hoff
971ce896d5 Travis 2017-08-21 16:08:22 +02:00
Johannes Hoff
e997c0f952 Read articles from the actual DB 2017-08-20 23:44:52 +02:00
Magnus Hoff
d9c3bf1191 Templates for error messages 2017-08-20 22:39:52 +02:00
Magnus Hoff
4a37a91ece Split layout out from rendering responses 2017-08-20 22:34:26 +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
9ce7ff7fe1 Ignore db-files 2017-08-20 20:46:36 +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