Commit Graph

83 Commits

Author SHA1 Message Date
Anthony J. Martinez e28bc772f4 Add error handler to Router to top panic on bad requests 2021-04-18 12:19:43 +02:00
Anthony J. Martinez 4c03b61e03 Update Cargo.lock 2021-04-18 11:22:31 +02:00
Anthony J. Martinez 24d7955db4 Remove alpha marker from version 2021-04-18 11:20:55 +02:00
Anthony J. Martinez 6c46c849d5 Update roadmap 2021-04-18 11:13:31 +02:00
Anthony J. Martinez 38e1337e08 Move to binary crate only, move to 'anyhow' for error handling. 2021-04-18 11:09:44 +02:00
Anthony J. Martinez 20accb8d66 Create errors module, and add custom errors to auth module 2021-04-17 20:19:30 +02:00
Anthony J. Martinez 23d30c9171 Merge pull request 'Add crate logging' (#17) from logging into main
Reviewed-on: #17
2021-04-17 12:12:38 +00:00
Anthony J. Martinez 4e95a3dbbf Add roadmap to README.md 2021-04-15 20:10:54 +02:00
Anthony J. Martinez ec96dd1218 Add logging, refactor Blog to Site, update README.md 2021-04-13 21:24:55 +02:00
Anthony J. Martinez 5a1a767ef8 Add logging calls in auth.rs, common.rs, and arse.rs
Change to block comments for readability
2021-04-11 18:57:55 +02:00
Anthony J. Martinez 8c10b0fce0 Close #5 by implementing logging.
- Default level is INFO
- If -v is passed as an option, level is DEBUG
- If -vv or -v -v is passed, level is TRACE
- Adding additional -v level is still TRACE
2021-04-11 14:19:43 +02:00
Anthony J. Martinez 5255197a96 Merge pull request 'category-slugs' (#15) from category-slugs into main
Reviewed-on: #15
2021-04-10 10:13:01 +00:00
Anthony J. Martinez 3bcb433c2d Remove re-exports of Parser, html, Tera, and Context 2021-04-10 12:04:46 +02:00
Anthony J. Martinez 870318695b Fix Cargo.toml category slugs 2021-04-10 11:49:14 +02:00
Anthony J. Martinez f0c3efd67c Merge pull request 'Name the project. Add a README, and license headers.' (#14) from name-project into main
Reviewed-on: #14
2021-04-10 09:32:50 +00:00
Anthony J. Martinez 491984fcf0 Name the project. Add a README, and license headers. 2021-04-10 11:27:29 +02:00
Anthony J. Martinez 7535a2b1bb Merge pull request 'Add route tests for each route handler' (#13) from route-tests into main
Reviewed-on: ajmartinez/caty-blog#13
2021-04-10 07:54:19 +00:00
Anthony J. Martinez 4b1810390c Add route tests for each route handler
- Closes #12
2021-04-10 09:51:31 +02:00
Anthony J. Martinez f746259236 Merge pull request 'First working version' (#11) from routes into main
Reviewed-on: ajmartinez/caty-blog#11
2021-04-08 19:03:17 +00:00
Anthony J. Martinez 13c279b3ff Fix the default template
- Closes #9
- Closes #10
2021-04-08 20:55:35 +02:00
Anthony J. Martinez f5e680322a Create routes with routerify, reach base MVP
- Closes #1 directory structure is generated by `new` subcommand
- Closes #2 dynamic routes created and verified
- Closes #4 generated config loads and runs the site as defined
2021-04-08 20:22:54 +02:00
Anthony J. Martinez 9ea016dff5 Update cargo, remove warp, branch for routes 2021-04-05 14:01:51 +02:00
Anthony J. Martinez 7af4d8d42f Added rendering, removed route module, renamed io module 2021-04-04 21:03:22 +02:00
Anthony J. Martinez 55a07d2626 Make config struct fields public, start adding routes 2021-04-04 14:16:53 +02:00
Anthony J. Martinez 52404dc233 Restructure mods, write config to disk on generation 2021-04-03 18:49:41 +02:00
Anthony J. Martinez f3ab948253 Add dependencies for logging, testing, pw hashing
- Closes #4
- Closes #6
- Improves test coverage
- Adds password hashing
- Adds totp token generation
2021-03-31 18:08:58 +02:00
Anthony J. Martinez fb2b39aeb2 Refactor again for a more logical AppConfig::generate() method
- Write password to read-only file rather than stdout closing
- Creates the directory structure, may still refactor more
- Fixes #1
2021-03-30 18:47:04 +02:00
Anthony J. Martinez d5c21318f7 Generate AppConfig from user input
- Add auth::generate_alphanum_password
- Use above when generating AppConfig from user input
- Add TODO doc comments to public interface
2021-03-29 20:27:01 +02:00
Anthony J. Martinez 5015f21ede Expand config.rs with additional options 2021-03-28 23:01:59 +02:00
Anthony J. Martinez 6beb6c6af7 Update about/help messages for Clap 2021-03-27 16:18:27 +01:00
Anthony J. Martinez 3b5b815b21 Complete work on loading arguments and configuration 2021-03-27 16:11:22 +01:00
Anthony J. Martinez 74e3b99e23 Update project structure 2021-03-27 09:33:24 +01:00
Anthony J. Martinez a6e8d50730 Initial commit 2021-03-21 17:25:31 +01:00