Replace Rusqlite by Sqlx and Actix by Axum (A lot of changes)
This commit is contained in:
parent
57d7e7a3ce
commit
980c5884a4
28 changed files with 2860 additions and 2262 deletions
21
TODO.md
21
TODO.md
|
|
@ -1,20 +1,29 @@
|
|||
* Clean the old code + commit
|
||||
* How to log error to journalctl or elsewhere + debug log?
|
||||
* Try using WASM for all the client logic (test on editing/creating a recipe)
|
||||
* Understand the example here:
|
||||
* https://github.com/rustwasm/wasm-bindgen/tree/main/examples/todomvc -> https://rustwasm.github.io/wasm-bindgen/exbuild/todomvc/#/
|
||||
* Describe the use cases.
|
||||
* Define the UI (mockups).
|
||||
* Two CSS: one for desktop and one for mobile
|
||||
* Use CSS flex/grid to define a good design/layout
|
||||
* Define the logic behind each page and action.
|
||||
* Add a level of severity for the message template, use error severity in "impl axum::response::IntoResponse for db::DBError"
|
||||
* Review the recipe model (SQL)
|
||||
* Describe the use cases in details.
|
||||
* Define the UI (mockups).
|
||||
* Two CSS: one for desktop and one for mobile
|
||||
* Use CSS flex/grid to define a good design/layout
|
||||
* Define the logic behind each page and action.
|
||||
* Implement:
|
||||
.service(services::edit_recipe)
|
||||
.service(services::new_recipe)
|
||||
.service(services::webapi::set_recipe_title)
|
||||
.service(services::webapi::set_recipe_description)
|
||||
* Add support to translations into db model.
|
||||
|
||||
[ok] Reactivate sign up/in/out
|
||||
[ok] Change all id to i64
|
||||
[ok] Check cookie lifetime -> Session by default
|
||||
[ok] Asynchonous email sending and database requests
|
||||
[ok] Try to return Result for async routes (and watch what is printed in log)
|
||||
[ok] Then try to make async database calls
|
||||
[ok] Set email sending as async and show a waiter when sending email. Handle (and test) a timeout (~10s). -> (timeout put to 60s)
|
||||
[ok] How to log error to journalctl?
|
||||
[ok] Sign out
|
||||
[ok] Read all the askama doc and see if the current approach is good
|
||||
[ok] Handle 404
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue