Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Make proper module of models | Harald Eilertsen | 2018-01-10 | 2 | -4/+7 | |
| | ||||||
* | Adding edit/update logic. | Harald Eilertsen | 2018-01-10 | 5 | -6/+63 | |
| | | | | The model is not done yet, though. No net on the train. | |||||
* | Order and cosmetics on extern crate declarations. | Harald Eilertsen | 2017-12-30 | 2 | -12/+10 | |
| | ||||||
* | Move creating post in db to Post model impl. | Harald Eilertsen | 2017-12-23 | 3 | -16/+19 | |
| | ||||||
* | Implement posts/show handler. | Harald Eilertsen | 2017-12-23 | 4 | -1/+40 | |
| | ||||||
* | Don't import modules in macro. | Harald Eilertsen | 2017-12-23 | 1 | -10/+5 | |
| | | | | | Didn't work well when macro was invoked more than once for each source file. Use full references to all symbols instead. | |||||
* | Move get_post into impl and rename. | Harald Eilertsen | 2017-12-23 | 2 | -8/+10 | |
| | ||||||
* | Move get_posts function to models. | Harald Eilertsen | 2017-12-23 | 2 | -11/+11 | |
| | ||||||
* | Move implement_responder_for macro into crate. | Harald Eilertsen | 2017-12-23 | 4 | -26/+32 | |
| | | | | | This is so we can use it in other modules too. Besides it makes things slightly cleaner. | |||||
* | Move posts module to it's own source file. | Harald Eilertsen | 2017-12-17 | 2 | -30/+29 | |
| | ||||||
* | Update README | Harald Eilertsen | 2017-12-17 | 1 | -0/+35 | |
| | ||||||
* | Add readme | Harald Eilertsen | 2017-11-22 | 1 | -0/+5 | |
| | ||||||
* | Add license | Harald Eilertsen | 2017-11-22 | 1 | -0/+661 | |
| | ||||||
* | Move responder impl's for templates to a macro. | Harald Eilertsen | 2017-11-22 | 1 | -15/+19 | |
| | ||||||
* | Add handlers for creating new Posts. | Harald Eilertsen | 2017-11-22 | 4 | -1/+81 | |
| | ||||||
* | Derive FromForm for models::Post. | Harald Eilertsen | 2017-11-21 | 2 | -1/+4 | |
| | | | | | This allows us to pass in forms that will translate into proper form objects. | |||||
* | Implement default trait for Posts using derive. | Harald Eilertsen | 2017-11-21 | 1 | -1/+1 | |
| | ||||||
* | Use route decorators to produce different output formats. | Harald Eilertsen | 2017-11-20 | 2 | -22/+26 | |
| | | | | | | This seems to be the more proper way of doing it. Also makes it much clearer which routes exists, and what formats they accept. Both in the code and in the status output. | |||||
* | Use serde_json to create json response when requested by client. | Harald Eilertsen | 2017-11-20 | 4 | -8/+25 | |
| | ||||||
* | Implement responder for IndexTemplate. | Harald Eilertsen | 2017-11-17 | 1 | -3/+15 | |
| | | | | | | | This means the actual handler just returns the template, which is then rendered by the responder for that type. Looking into making this generic so the responder can return data in other formats as well, like json or xml. | |||||
* | Set correct content-type for response. | Harald Eilertsen | 2017-11-16 | 1 | -2/+3 | |
| | ||||||
* | Render post teasers using partial. | Harald Eilertsen | 2017-11-16 | 2 | -3/+9 | |
| | ||||||
* | Pass posts to the template and iterate over them. | Harald Eilertsen | 2017-11-16 | 2 | -8/+6 | |
| | ||||||
* | Add Bart templating engine. | Harald Eilertsen | 2017-11-16 | 3 | -10/+26 | |
| | ||||||
* | Add schema for posts, and display them on index page. | Harald Eilertsen | 2017-10-01 | 6 | -4/+41 | |
| | ||||||
* | Get database connection on request | Harald Eilertsen | 2017-10-01 | 2 | -1/+34 | |
| | ||||||
* | Move database setup to lib.rs. | Harald Eilertsen | 2017-10-01 | 2 | -28/+29 | |
| | ||||||
* | Connect to database pool when igniting. | Harald Eilertsen | 2017-10-01 | 1 | -1/+29 | |
| | ||||||
* | Add dependency to r2d2 to manage database access. | Harald Eilertsen | 2017-10-01 | 1 | -0/+2 | |
| | ||||||
* | Ignore .env file | Harald Eilertsen | 2017-10-01 | 1 | -0/+1 | |
| | ||||||
* | Add dep to diesel, and set it up. | Harald Eilertsen | 2017-10-01 | 3 | -0/+41 | |
| | ||||||
* | Commit gitignore | Harald Eilertsen | 2017-10-01 | 1 | -0/+3 | |
| | ||||||
* | Initial launch! | Harald Eilertsen | 2017-10-01 | 3 | -0/+46 | |