Compare commits

..

11 commits

Author SHA1 Message Date
6be6f88efe Merge branch 'frontend/creating-a-sidebar' of https://git.mixel.cloud/Turbo/peer-group-grading into frontend/creating-a-sidebar
Some checks failed
ci/woodpecker/pr/cargo_check Pipeline was successful
ci/woodpecker/pr/cargo_clippy Pipeline was successful
ci/woodpecker/pr/cargo_test Pipeline was successful
ci/woodpecker/pr/check_fmt Pipeline failed
2025-04-09 10:44:01 +02:00
53fe776017 added render conditions 2025-04-09 10:43:11 +02:00
c69c74b5d3 Optimized Styling added Dummy 2025-04-09 10:34:14 +02:00
3a74cf4759 Added content to Sidebar 2025-04-09 10:33:16 +02:00
Doulrion
3b604d75f5 Sidebar list 2025-04-09 10:32:42 +02:00
Doulrion
6936e5bfca Added Drawer wthout working content 2025-04-09 10:32:42 +02:00
9daaa94660 Merge pull request 'push-cargo-lock' (#61) from push-cargo-lock into main
Reviewed-on: #61
2025-04-09 10:00:00 +02:00
9a693821ce push cargo-lock
Some checks failed
ci/woodpecker/pr/cargo_check Pipeline was successful
ci/woodpecker/pr/cargo_clippy Pipeline was successful
ci/woodpecker/pr/cargo_test Pipeline was successful
ci/woodpecker/pr/check_fmt Pipeline failed
2025-04-09 09:59:45 +02:00
f81590ff24 feat: automatically run migration on startup 2025-04-09 09:59:45 +02:00
9bad76dcd6 Merge pull request 'chaged the header and styling' (#60) from frontend/changing-more-things-on-header into main
Reviewed-on: #60
Reviewed-by: DulliGulli <jan.hoegerle@gmail.com>
2025-04-09 09:45:15 +02:00
6b4dd96d83 chaged the header and styling
Some checks failed
ci/woodpecker/pr/cargo_check Pipeline was successful
ci/woodpecker/pr/cargo_clippy Pipeline was successful
ci/woodpecker/pr/cargo_test Pipeline was successful
ci/woodpecker/pr/check_fmt Pipeline failed
2025-04-09 09:38:53 +02:00
4 changed files with 4326 additions and 1 deletions

2
.gitignore vendored
View file

@ -6,7 +6,7 @@ target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk

4314
Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -16,4 +16,8 @@ impl Database {
conn: sea_orm::Database::connect(options).await?,
})
}
pub fn connection(&self) -> &DatabaseConnection {
&self.conn
}
}

View file

@ -9,6 +9,9 @@ mod error;
pub use db::Database;
pub use db::entity;
use log::info;
use migration::Migrator;
use migration::MigratorTrait;
#[derive(Clone)]
struct AppConfig {
@ -24,6 +27,10 @@ async fn main() -> std::io::Result<()> {
let database = Database::new(database_url.into()).await.unwrap();
info!("Running migrations");
Migrator::up(database.connection(), None).await.unwrap();
info!("Migrations completed");
let redis_conn = connect_to_redis_database().await;
let app_config = AppConfig { ldap_auth: false };