Vincent Ambo
c8cee945c5
refactor(main): Move handlers into separate handler module
2018-04-08 19:21:41 +02:00
Vincent Ambo
67a0642f8c
feat(main): Support CONVERSE_BIND_HOST environment variable
2018-04-08 18:44:41 +02:00
Vincent Ambo
a1a6b77fdf
refactor(main): Use actix-web extractor pattern
2018-04-08 18:42:01 +02:00
Vincent Ambo
316036b0a8
refactor(db): Establish Post->Thread association
...
This makes it possible to query posts by thread via Diesel.
2018-04-08 18:30:01 +02:00
Vincent Ambo
6e56f8e729
feat(main/templates): Add barebones single-thread view
2018-04-08 18:02:01 +02:00
Vincent Ambo
7dca9183c5
feat(db): Add initial GetThread message
...
Adds a GetThread message that returns a thread by ID. This does not
yet load posts.
2018-04-08 17:42:14 +02:00
Vincent Ambo
3db069c60d
feat(main): Add support for Tera templates
...
Sets up the structure required to carry Tera templates in the
actix-web state.
The (still very barebones) index renderer has been updated to render a
Tera template.
2018-04-08 17:30:03 +02:00
Vincent Ambo
b83dd99e30
chore(cargo): Add dependency on tera
...
Adds tera as the templating engine.
2018-04-08 17:14:38 +02:00
Vincent Ambo
1402cfd948
feat(main): Add barebares thread listing
...
This ties together the first components here (actix, diesel etc.) to
provide a _very_ simple thread overview.
2018-04-08 17:05:28 +02:00
Vincent Ambo
36e520a2b2
feat(db): Implement ListThreads message
...
Implements support for a message for listing threads. This does not
have any pagination support yet.
2018-04-08 17:04:45 +02:00
Vincent Ambo
bea6eb8eb3
feat(db): Bootstrap DbExecutor actor
...
Bootstraps an Actix actor carrying DB connections. This actor will be
used to interact with converse's database.
2018-04-08 16:41:34 +02:00
Vincent Ambo
5604d933e8
feat(main): Add minimal thread listing example
2018-04-08 16:08:26 +02:00
Vincent Ambo
f3f509d463
feat(main): Bootstrap project entrypoint
...
This doesn't really do anything yet.
2018-04-08 15:49:27 +02:00
Vincent Ambo
72691c8d63
feat(models/schema): Map up posts & threads table
2018-04-08 15:49:19 +02:00
Vincent Ambo
042eb88fd7
feat(migrations): Add posts & threads tables
2018-04-08 15:48:56 +02:00
Vincent Ambo
106ade6e41
chore: Add bootstrapped Cargo project
2018-04-08 15:48:49 +02:00
Vincent Ambo
2fd8fa2321
chore: Initial commit
2018-04-08 15:48:38 +02:00