This commit is contained in:
LinlyBoi
2023-01-26 20:44:17 +02:00
parent 2247a50296
commit 026349e82b
2 changed files with 8 additions and 12 deletions

View File

@@ -4,18 +4,12 @@ The project structure is divided into 3 thingies
## Frontend
- Utilises YEW
- Builds component with HTML macro
- Fetches values from API via requests see [https://yew.rs/docs/0.18.0/concepts/services/fetch#dispatching-requests](Yew requests)
- Don't need anythign fancy yet
- Will hopefully add more here
- [ ] Make user input without dying
## Backend
Ohoihohohoho t he fun begins here
- Covering get requests for now to fetch data
- the path is read from the macro atop the functions
- the function takes variables that are in {} in the path
- must pass the vars into their smaller first not directly web::Path<Type> or whatever
- Template function for ticket extraction exists
- [ ] Make retrieval functions for all data types (Refer to models.rs for those and their parameters)
### Models.rs
the good file where the structs that interact with the database occurred
Realised that diesel is abysmal and should not be used holy fuck
- sqlx my beloved
- we write the SQL code and it gets checked at compile time very cool
- [ ] Define structs for certain types for simplicity sake