Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move database config to Rocket.toml. | Harald Eilertsen | 2020-08-24 | 2 | -16/+3 |
| | | | | | This makes for one place to config everything instead of programatically setting the config. | ||||
* | Implement edit screenings in web ui. | Harald Eilertsen | 2020-08-23 | 4 | -2/+72 |
| | |||||
* | Store timestamps in UTC. | Harald Eilertsen | 2020-08-23 | 1 | -6/+16 |
| | | | | | | | | | For now we just hardcode that the local timezone of the site is UTC+2. Good enough for now, but something that should be configurable. Also split the date and time entries in the form again, the date refers to the start date. If the end time is before the start time, we assume it's the day after. Again, good enough for now. | ||||
* | Change start/end times to complete timestamps. | Harald Eilertsen | 2020-08-23 | 4 | -26/+22 |
| | | | | | | | The way we had this until now with a date and separate start and end times does not really work. There are cases when a screening starts on one day, but ends on the next. By keeping a complete timestamp for both the start and end times, we don't fall into this problem. | ||||
* | Implement deleting screenings from web ui. | Harald Eilertsen | 2020-08-23 | 3 | -1/+19 |
| | |||||
* | Implement adding screenings in the web ui. | Harald Eilertsen | 2020-08-23 | 3 | -15/+76 |
| | |||||
* | Implement adding and listing films. | Harald Eilertsen | 2020-08-23 | 3 | -4/+47 |
| | |||||
* | Implement adding rooms through the web ui. | Harald Eilertsen | 2020-08-22 | 4 | -3/+30 |
| | |||||
* | Swap rank on plain and json response for room list. | Harald Eilertsen | 2020-08-22 | 1 | -7/+9 |
| | | | | Note to self: More explicit should have lower rank (higher precedence.) | ||||
* | Use Tera templates to render pages. | Harald Eilertsen | 2020-08-22 | 2 | -3/+17 |
| | |||||
* | Update deps, drop serde_derive. | Harald Eilertsen | 2020-08-22 | 3 | -3/+3 |
| | | | | | serde_derive is included by passing the 'derive' feature to serde instead. | ||||
* | Drop attribute no longer needed from lib. | Harald Eilertsen | 2019-08-10 | 1 | -1/+1 |
| | | | | Feature has been stabilized so no need to explicitly enable it anymore. | ||||
* | Add db::get_screeinings to get plain screening model. | Harald Eilertsen | 2019-08-10 | 2 | -1/+6 |
| | |||||
* | Rename ScreeningRecord model to Screening | Harald Eilertsen | 2019-08-10 | 1 | -2/+2 |
| | |||||
* | Rename Screening model to AggregateScreening | Harald Eilertsen | 2019-08-10 | 5 | -11/+12 |
| | |||||
* | Update /screenings endpoint to return full info on screenings. | Harald Eilertsen | 2019-04-28 | 5 | -12/+40 |
| | | | | | This makes each screening record self-contained, and the json payload more consistent with how it semantically fit together. | ||||
* | Import model structs to main models module. | Harald Eilertsen | 2019-04-08 | 6 | -14/+18 |
| | |||||
* | Move functions to query/modify db to connection object. | Harald Eilertsen | 2019-04-08 | 7 | -73/+69 |
| | | | | | | Makes tha API a bit nicer by asking the database rather than passing the database on to each model. Reserve models for method/functions that work on the model structs themselves. | ||||
* | Add endpoint to fetch screenings from the database. | Harald Eilertsen | 2019-04-08 | 5 | -2/+114 |
| | | | | | | Not entirely happy about the way this turned out for now. A more ergonomic return type from the models::screenings::get_all() function will be investigated. | ||||
* | Add models::film::by_title and models::room::by_name methods. | Harald Eilertsen | 2019-04-08 | 2 | -0/+14 |
| | |||||
* | Add route to fetch films from database. | Harald Eilertsen | 2019-04-02 | 5 | -2/+80 |
| | |||||
* | Actually fetch available rooms from the database. | Harald Eilertsen | 2019-03-21 | 5 | -7/+67 |
| | |||||
* | Pass database url into build_rocket helper function. | Harald Eilertsen | 2019-03-20 | 2 | -5/+5 |
| | |||||
* | Refactoring, move db connection and room controller to separate modules. | Harald Eilertsen | 2019-03-04 | 4 | -20/+81 |
| | |||||
* | Use rocket_contrib's JsonValue as return type. | Harald Eilertsen | 2019-03-04 | 1 | -3/+4 |
| | |||||
* | Begin implement /rooms endpoint. | Harald Eilertsen | 2019-03-04 | 2 | -26/+60 |
| | | | | | | Refactors the code by moving the implementation to a library, to make it testable. A dummy /rooms endpoint returning an empty list was added as well. | ||||
* | Add basic db schema. | Harald Eilertsen | 2019-03-04 | 1 | -0/+31 |
| | |||||
* | Set up database and connection pool with rocket_contrib::databases. | Harald Eilertsen | 2019-03-04 | 1 | -2/+28 |
| | | | | | Set the env var DATABASE_URL before running the server. A .env file in the root of the project is also supported. | ||||
* | Use rocket_contrib StaticFiles module to serve static files. | Harald Eilertsen | 2019-03-04 | 1 | -26/+3 |
| | | | | | | | This also changes the structure of the app quite significantly. Instead if generating the html for the index, we simply provide a public/index.html static file instead. For now this seems to make sense, it may not hold in the long run, but that's for another time to worry about. | ||||
* | Enable askama rocket integration. | Harald Eilertsen | 2019-03-03 | 1 | -7/+3 |
| | | | | Let's us return templates directly, and have rocket render it for us. | ||||
* | Add license. | Harald Eilertsen | 2019-03-02 | 1 | -0/+17 |
| | |||||
* | Use askama for templates. | Harald Eilertsen | 2019-03-02 | 1 | -3/+19 |
| | |||||
* | Add favicon and route to get public files. | Harald Eilertsen | 2019-03-02 | 1 | -2/+8 |
| | |||||
* | Into space... | Harald Eilertsen | 2019-03-02 | 1 | -0/+12 |