fire
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,3 +2,5 @@
|
||||
.env
|
||||
backend/target/sqlx/backend
|
||||
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
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user