22 lines
828 B
Markdown
22 lines
828 B
Markdown
# Project structure
|
|
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
|
|
|
|
## 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
|
|
|