Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update rocket and other deps. | Harald Eilertsen | 2019-08-10 | 1 | -266/+476 |
| | |||||
* | Add endpoint to fetch screenings from the database. | Harald Eilertsen | 2019-04-08 | 1 | -0/+29 |
| | | | | | | 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. | ||||
* | Refactor tests to always load fixtures, and sync execution. | Harald Eilertsen | 2019-04-02 | 1 | -0/+1 |
| | | | | | | | Rust will run tests in parallel by default, which does not work too well with using db transactions as a means to isolate changes in the database between tests. So we have to run the database tests one at a time, thus the mutex. | ||||
* | Actually fetch available rooms from the database. | Harald Eilertsen | 2019-03-21 | 1 | -0/+15 |
| | |||||
* | Use rocket_contrib's JsonValue as return type. | Harald Eilertsen | 2019-03-04 | 1 | -0/+25 |
| | |||||
* | Set up database and connection pool with rocket_contrib::databases. | Harald Eilertsen | 2019-03-04 | 1 | -0/+214 |
| | | | | | Set the env var DATABASE_URL before running the server. A .env file in the root of the project is also supported. | ||||
* | Remove templates and dep on askama no longer needed. | Harald Eilertsen | 2019-03-04 | 1 | -79/+0 |
| | |||||
* | Use rocket_contrib StaticFiles module to serve static files. | Harald Eilertsen | 2019-03-04 | 1 | -0/+241 |
| | | | | | | | 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 | -0/+1 |
| | | | | Let's us return templates directly, and have rocket render it for us. | ||||
* | Rename program to simply ramaskrik. | Harald Eilertsen | 2019-03-02 | 1 | -1/+1 |
| | |||||
* | Use askama for templates. | Harald Eilertsen | 2019-03-02 | 1 | -0/+78 |
| | |||||
* | Into space... | Harald Eilertsen | 2019-03-02 | 1 | -0/+488 |