Commit Graph

19 Commits

Author SHA1 Message Date
Paul van Tilburg 8bac9ec027 Rework the tests to use a macro and DB seeding 2019-07-08 20:25:03 +02:00
Paul van Tilburg 329a92d593 Replace error_status() method by several response types 2019-07-08 20:25:03 +02:00
Paul van Tilburg 5c20b27f35 Add database seeding (for tests) 2019-07-08 20:25:03 +02:00
Paul van Tilburg f0764a30fb Move the error_status function to the rest_helpers module 2019-07-08 20:25:03 +02:00
Paul van Tilburg 95dd4408b7 Automatically run database migrations on start 2019-07-08 20:25:03 +02:00
Paul van Tilburg c8dff9cea5 Ignore the databases and .env 2019-07-08 20:06:29 +02:00
Paul van Tilburg 6841a3b026 Implement the customer handlers using the model 2019-07-08 20:06:29 +02:00
Paul van Tilburg f4d72b68d2 Add REST helpers and the customer model 2019-07-08 20:06:29 +02:00
Paul van Tilburg 344ca286da Add a database pool through a fairing 2019-07-08 20:06:29 +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