Paul van Tilburg
fe13723323
Move GraphQL-related model code to a separate module
2019-07-10 20:58:37 +02:00
Paul van Tilburg
63fc7a0721
Some documentation tweaks
2019-07-10 20:58:33 +02:00
Paul van Tilburg
c3a6b5f572
Get rid of all non-GraphQL handlers
...
Also move the GraphQL handlers to the parent handlers model.
2019-07-10 20:54:46 +02:00
Paul van Tilburg
26c86fe03e
Add GraphQL handlers and add GraphQL schema
...
Remove all REST and JSON related handlers and error catchers.
2019-07-09 12:24:52 +02:00
Paul van Tilburg
5e24738bba
Turn all models into GraphQL(Input)Objects
2019-07-09 12:23:58 +02:00
Paul van Tilburg
f8bff689e6
Add relation resolving methods to all models
2019-07-09 12:23:31 +02:00
Paul van Tilburg
368a3ff10e
Add some ORM/Diesel helper macros
2019-07-09 12:21:12 +02:00
Paul van Tilburg
68ca95f166
Add juniper crates to the dependencies
2019-07-09 12:19:01 +02:00
Paul van Tilburg
0b7471467e
Switch FLOAT types to DOUBLE in the database
...
SQLite has no NUMERIC(8,3) type, which it should acutally be.
Switch to DOUBLE, because FLOAT maps to f32 which is not supported
by GraphQL.
2019-07-09 12:18:54 +02:00
Paul van Tilburg
33c9520d5d
Automatically run database migrations on start
2019-07-09 12:17:28 +02:00
Paul van Tilburg
5d6a26a3ed
Ignore the databases and .env
2019-07-08 20:39:06 +02:00
Paul van Tilburg
ef4507e25e
Add a database pool through a fairing
2019-07-08 20:36:59 +02:00
Paul van Tilburg
66cb47d619
Bump rocket depends to 0.4.2 (for Rust ≥ 1.36)
2019-07-08 20:03:13 +02:00
Paul van Tilburg
4082a45d5d
Add a README and LICENSE file
2019-06-15 11:44:33 +02:00
Paul van Tilburg
d88f970107
Add GitLab CI
2019-06-10 12:29:42 +02:00
Paul van Tilburg
5e7e4c658e
Add error catchers
2019-06-10 10:24:53 +02:00
Paul van Tilburg
1559936d4b
Add new (insertable) models and associations to models
...
Also make models updateable (by deriving `AsChangeset`), debuggable
(by deriving `Debug`) and identifiable (by deriving `Identifiable`).
Note that the `CompanyInfo` is not updateable as a new revision
should be created. Leaving this derive out ensure we cannot
accidentally update it.
2019-06-10 10:24:53 +02:00
Paul van Tilburg
4a8b3a48e1
Add first version of the diesel schema and models
2019-06-10 10:24:50 +02:00
Paul van Tilburg
420a366b38
Add stub handlers for the complete application
...
No handler is implemented!
2019-06-10 10:23:33 +02:00
Paul van Tilburg
48164aea40
Add support for serving static files from ./static
2019-06-10 10:23:31 +02:00
Paul van Tilburg
228aa5ab11
Import initial version into Git
2019-06-10 10:16:31 +02:00
Paul van Tilburg
1f44ff1e37
Initial commit
2019-06-08 13:58:20 +02:00