Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |