From 5c4b8ab7f252fa4cc56bb4b4046dbd4ba80d8775 Mon Sep 17 00:00:00 2001 From: dev Date: Mon, 12 Oct 2026 08:17:40 +0530 Subject: [PATCH] Rename zenith-pyq-clone to whaleprep Package, binary, tracing filter, footer copy, run_server.sh and README updated. Footer no longer attributes zenithprepare.com. --- Cargo.lock | 50 +++++++++++++++++++++++++------------------------- Cargo.toml | 2 +- README.md | 2 +- run_server.sh | 4 ++-- src/main.rs | 2 +- src/views.rs | 2 +- 6 files changed, 31 insertions(+), 31 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d8270c5..f3520cc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3008,6 +3008,31 @@ dependencies = [ "rustls-pki-types", ] +[[package]] +name = "whaleprep" +version = "0.1.0" +dependencies = [ + "anyhow", + "axum", + "base64 0.23.1", + "chrono", + "jsonwebtoken", + "rand 0.8.8", + "reqwest", + "rsa", + "serde", + "serde_json", + "serde_urlencoded", + "sha2 0.11.0", + "sqlx", + "tokio", + "tower-cookies", + "tower-http 0.7.1", + "tracing", + "tracing-subscriber", + "uuid", +] + [[package]] name = "whoami" version = "2.1.3" @@ -3204,31 +3229,6 @@ dependencies = [ "synstructure", ] -[[package]] -name = "zenith-pyq-clone" -version = "0.1.0" -dependencies = [ - "anyhow", - "axum", - "base64 0.23.1", - "chrono", - "jsonwebtoken", - "rand 0.8.8", - "reqwest", - "rsa", - "serde", - "serde_json", - "serde_urlencoded", - "sha2 0.11.0", - "sqlx", - "tokio", - "tower-cookies", - "tower-http 0.7.1", - "tracing", - "tracing-subscriber", - "uuid", -] - [[package]] name = "zerocopy" version = "0.8.62" diff --git a/Cargo.toml b/Cargo.toml index 072d81a..ae10cfc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "zenith-pyq-clone" +name = "whaleprep" version = "0.1.0" edition = "2024" diff --git a/README.md b/README.md index b260923..c6c54cc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# PYQ clone +# WhalePrep A working full-stack copy of the ZenithPrep PYQ practice app: build a paper from JEE Main style questions, take it on a timed CBT screen with +4 / −1 marking, diff --git a/run_server.sh b/run_server.sh index 71728d0..65ac14e 100755 --- a/run_server.sh +++ b/run_server.sh @@ -1,13 +1,13 @@ #!/bin/bash # Starts the clone detached so it survives shell teardown. Usage: run_server.sh set -e -DIR="/home/oiupoyt/my stuff yea/projects/zenith-pyq-clone" +DIR="/home/oiupoyt/my stuff yea/projects/whaleprep" PORT="${1:-8123}" DB="${2:-/tmp/pyq_run.db}" cd "$DIR" rm -f "$DB" "$DB-wal" "$DB-shm" PYQ_DB="$DB" PYQ_ADDR="127.0.0.1:$PORT" RUST_LOG=info \ - setsid nohup ./target/debug/zenith-pyq-clone > "/tmp/pyq_server_$PORT.log" 2>&1 < /dev/null & + setsid nohup ./target/debug/whaleprep > "/tmp/pyq_server_$PORT.log" 2>&1 < /dev/null & echo "started pid=$! port=$PORT db=$DB" sleep 3 curl -s -o /dev/null -w "health=%{http_code}\n" "http://127.0.0.1:$PORT/" \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 402b153..08ac2a9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,7 +32,7 @@ async fn main() -> anyhow::Result<()> { // Defaults to info; RUST_LOG=debug adds the query log. tracing_subscriber::fmt() .with_env_filter( - tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| "zenith_pyq_clone=info,sqlx=warn".into()), + tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| "whaleprep=info,sqlx=warn".into()), ) .init(); let db_path = std::env::var("PYQ_DB").unwrap_or_else(|_| "pyq.db".into()); diff --git a/src/views.rs b/src/views.rs index 51b7ae8..56375c1 100644 --- a/src/views.rs +++ b/src/views.rs @@ -81,7 +81,7 @@ fn nav(ctx: &Ctx, user: Option<&str>) -> String { fn foot(ctx: &Ctx) -> String { format!( - r#"
PYQ clone · running on sqlite · built as a working copy of zenithprepare.com/PYQterms · privacy
"#, + r#""#, b = ctx.base ) }