From ee4fbf9a7549741c3f136261f9e68ded7808eba8 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Fri, 23 Dec 2022 11:55:42 +0200 Subject: [PATCH] fixed toml and readme started --- README.md | 21 +++++++++++++++++++++ backend/Cargo.toml | 1 - 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..bcbea51 --- /dev/null +++ b/README.md @@ -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 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 + diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 175fd33..62d7f34 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -2,7 +2,6 @@ name = "backend" version = "0.1.0" edition = "2021" -default-run = "main" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html