fixed toml and readme started
This commit is contained in:
21
README.md
Normal file
21
README.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# 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
|
||||||
|
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
name = "backend"
|
name = "backend"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
default-run = "main"
|
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user