fire
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,3 +2,5 @@
|
|||||||
.env
|
.env
|
||||||
backend/target/sqlx/backend
|
backend/target/sqlx/backend
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
frontend/dist/db-frontend-a8d46cf89f6300e8.js
|
||||||
|
frontend/dist
|
||||||
|
|||||||
18
README.md
18
README.md
@@ -4,18 +4,12 @@ The project structure is divided into 3 thingies
|
|||||||
## Frontend
|
## Frontend
|
||||||
- Utilises YEW
|
- Utilises YEW
|
||||||
- Builds component with HTML macro
|
- 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
|
- Don't need anythign fancy yet
|
||||||
|
- Will hopefully add more here
|
||||||
|
- [ ] Make user input without dying
|
||||||
|
|
||||||
## Backend
|
## Backend
|
||||||
Ohoihohohoho t he fun begins here
|
Realised that diesel is abysmal and should not be used holy fuck
|
||||||
- Covering get requests for now to fetch data
|
- sqlx my beloved
|
||||||
- the path is read from the macro atop the functions
|
- we write the SQL code and it gets checked at compile time very cool
|
||||||
- the function takes variables that are in {} in the path
|
- [ ] Define structs for certain types for simplicity sake
|
||||||
- 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
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user