Updated to the latest version of Rocket

+ Added BCT section to resume
This commit is contained in:
Joey Hines 2021-09-12 14:23:07 -06:00
parent d1e376bcf7
commit 36f78e2678
No known key found for this signature in database
GPG Key ID: 80F567B5C968F91B
4 changed files with 1076 additions and 511 deletions

1551
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -7,14 +7,9 @@ edition = "2018"
# 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
[dependencies] [dependencies]
rocket = "0.4.5" rocket = "0.5.0-rc.1"
serde = "1.0" serde = "1.0"
serde_derive = "1.0" serde_derive = "1.0"
serde_json = "1.0" serde_json = "1.0"
regex = "1.3.4" regex = "1.3.4"
rocket_dyn_templates = { version="0.1.0-rc.1", features=["tera"] }
[dependencies.rocket_contrib]
version = "0.4.2"
default-features = false
features = ["tera_templates", "serve"]

View File

@ -11,8 +11,7 @@ mod rst_parser;
use crate::rst_parser::parse_images; use crate::rst_parser::parse_images;
use regex::Regex; use regex::Regex;
use rocket::Request; use rocket::Request;
use rocket_contrib::serve::StaticFiles; use rocket_dyn_templates::Template;
use rocket_contrib::templates::Template;
use rst_parser::parse_links; use rst_parser::parse_links;
use std::collections::HashMap; use std::collections::HashMap;
use std::error; use std::error;
@ -248,21 +247,17 @@ fn rst_page(page: PathBuf) -> Template {
fn not_found(req: &Request<'_>) -> Template { fn not_found(req: &Request<'_>) -> Template {
let mut map = HashMap::new(); let mut map = HashMap::new();
map.insert("error_page", String::from(req.uri().path())); map.insert("error_page", String::from(req.uri().path().as_str()));
Template::render("404", &map) Template::render("404", &map)
} }
/// Launches website /// Launches website
fn rocket() -> rocket::Rocket { #[launch]
rocket::ignite() fn rocket() -> _ {
rocket::build()
.mount("/", routes![index, rst_page]) .mount("/", routes![index, rst_page])
.mount("/static", StaticFiles::from("static")) .mount("/static", rocket::fs::FileServer::from("static"))
.attach(Template::fairing()) .attach(Template::fairing())
.register(catchers![not_found]) .register("/",catchers![not_found])
}
/// Main
fn main() {
rocket().launch();
} }

View File

@ -1,5 +1,5 @@
Joey Hines - joey@ahines.net - Auburn,AL Joey Hines - joey@ahines.net - Westminster, CO
========================================= ==============================================
Education Education
--------- ---------
@ -16,6 +16,10 @@ Technical Skills
Work Experience Work Experience
--------------- ---------------
Blue Canyon Technologies - Flight Software Engineer - May 2021 to Present
* Developed flight software for small satellite missions
* Collaborated with mission operations to improve ground station capabilities
Auburn University - Graduate Research and Teaching Assistant - August 2019 to May 2021 Auburn University - Graduate Research and Teaching Assistant - August 2019 to May 2021
* Command and Data Handling (CDHS) team lead for a cube satellite project * Command and Data Handling (CDHS) team lead for a cube satellite project
* Collaborated with other team members to develop mission software * Collaborated with other team members to develop mission software