aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Updated dependencies, rocket, diesel and friends to latest.Harald Eilertsen2018-07-311-6/+6
|
* Add simple unfinished login controller.Harald Eilertsen2018-01-205-1/+66
| | | | | It will not actually log you in yet, but will check email/password and report back if it is good or not. More tbd.
* Add markdown support for posts using comrak.Harald Eilertsen2018-01-204-1/+10
|
* Remove obsolete post_teaser partial template.Harald Eilertsen2018-01-201-9/+0
|
* Refactor index template.Harald Eilertsen2018-01-203-5/+8
| | | | | Use a vector of show post templates instead of manually decoding posts in the index view.
* A bit more styling and some markup fixes in forms.Harald Eilertsen2018-01-192-9/+42
|
* Implement new/create user logic.Harald Eilertsen2018-01-194-1/+78
|
* Fix user model, and include in build.Harald Eilertsen2018-01-192-4/+10
|
* Begin implementing user model.Harald Eilertsen2018-01-181-0/+36
|
* Add users table to schema.Harald Eilertsen2018-01-183-0/+25
|
* Fix rustflags to set incremental cache.Harald Eilertsen2018-01-181-1/+1
|
* Upgrade to Diesel 1.1 and r2d2 0.8.2.Harald Eilertsen2018-01-184-12/+10
| | | | Also drop the now obsolete diesel_codegen crate.
* Be explicit about the schema instead of infering it.Harald Eilertsen2018-01-181-1/+8
| | | | | We don't want to depend on having a correctly set up database just to be able to build the program.
* Add flash messages when adding/editing/deleting posts.Harald Eilertsen2018-01-144-8/+14
|
* Set incremental build cache in vagrant env.Harald Eilertsen2018-01-141-0/+3
| | | | | Must be on a filesystem that supports hard links, to avoid warning during compilation.
* Install latest nightly in vagrant environment.Harald Eilertsen2018-01-141-1/+1
| | | | | Since we upgraded to Rocket 3.6 we no longer need the specific nightly to compile anymore.
* Add page header and simple stylesheet.Harald Eilertsen2018-01-142-0/+9
|
* Serve static files from public directory if no other route match.Harald Eilertsen2018-01-142-1/+12
|
* Improve error message with missing database url.Harald Eilertsen2018-01-141-22/+20
|
* Update rocket and dotenv.Harald Eilertsen2018-01-141-4/+4
|
* Split out layout from templates.Harald Eilertsen2018-01-148-97/+98
|
* Move post actions to partial.Harald Eilertsen2018-01-123-10/+11
|
* Implement deleting posts.Harald Eilertsen2018-01-124-2/+18
|
* Read .env file in main.Harald Eilertsen2018-01-112-9/+9
|
* Move homepage processing to separate controller.Harald Eilertsen2018-01-113-22/+27
|
* Move controller code to own module.Harald Eilertsen2018-01-113-2/+10
|
* Drop the lib.Harald Eilertsen2018-01-114-34/+26
| | | | | | The misc stuff from the lib root was moved to the utils module (terrible name, it's meant to be temporary.) The modules under the lib has been moved directly under the app.
* Update readme with Vagrant setupHarald Eilertsen2018-01-111-2/+28
|
* Vagrantfile: Need to start postgres before creating db user.Harald Eilertsen2018-01-111-5/+5
|
* Add vagrantfile to move setup away from local machine.Harald Eilertsen2018-01-112-0/+80
|
* Implement actually updating database.Harald Eilertsen2018-01-101-10/+14
|
* Make proper module of modelsHarald Eilertsen2018-01-102-4/+7
|
* Adding edit/update logic.Harald Eilertsen2018-01-105-6/+63
| | | | The model is not done yet, though. No net on the train.
* Order and cosmetics on extern crate declarations.Harald Eilertsen2017-12-302-12/+10
|
* Move creating post in db to Post model impl.Harald Eilertsen2017-12-233-16/+19
|
* Implement posts/show handler.Harald Eilertsen2017-12-234-1/+40
|
* Don't import modules in macro.Harald Eilertsen2017-12-231-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 Eilertsen2017-12-232-8/+10
|
* Move get_posts function to models.Harald Eilertsen2017-12-232-11/+11
|
* Move implement_responder_for macro into crate.Harald Eilertsen2017-12-234-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 Eilertsen2017-12-172-30/+29
|
* Update READMEHarald Eilertsen2017-12-171-0/+35
|
* Add readmeHarald Eilertsen2017-11-221-0/+5
|
* Add licenseHarald Eilertsen2017-11-221-0/+661
|
* Move responder impl's for templates to a macro.Harald Eilertsen2017-11-221-15/+19
|
* Add handlers for creating new Posts.Harald Eilertsen2017-11-224-1/+81
|
* Derive FromForm for models::Post.Harald Eilertsen2017-11-212-1/+4
| | | | | This allows us to pass in forms that will translate into proper form objects.
* Implement default trait for Posts using derive.Harald Eilertsen2017-11-211-1/+1
|
* Use route decorators to produce different output formats.Harald Eilertsen2017-11-202-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 Eilertsen2017-11-204-8/+25
|