Skip to content

Commit

Permalink
Merge pull request #194 from opeolluwa/feat-restructure-system
Browse files Browse the repository at this point in the history
Feat restructure system
  • Loading branch information
opeolluwa authored Jun 21, 2024
2 parents 3db19f9 + 8ea8cde commit 026f942
Show file tree
Hide file tree
Showing 49 changed files with 727 additions and 39 deletions.
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/uranium.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ version = {workspace = true}

[[bin]] # rename built binary to uranium
name = "uranium"
path = "src/main.rs"
path = "app/src/main.rs"

[workspace]
exclude = ["sandbox"]
members = [".", "app", "entity", "migration", "mailer"]
members = [".", "app", "entity", "migration", "mailer", "cli"]

[dependencies]
app = {path = "app"}
Expand All @@ -30,7 +30,7 @@ tonic-build = "0.9.2"

[workspace.package]
authors = ["Adeoye Adefemi <[email protected]>"]
description = "An Authentication, Authorization and Identity Management system for microservices"
description = "Free deployable open source central authorization system"
documentation = "https://opeolluwa.github.io/uranium"
edition = "2021"
homepge = "https://opeolluwa.github.io/uranium"
Expand All @@ -39,6 +39,7 @@ exclude = ["docs"]
license-file = "./LICENSE"
name = "uranium"
version = "0.1.3"

[workspace.dependencies]
prost = "0.11.9"
tokio = {version = "1.20.1", features = ["full"]}
Expand Down
36 changes: 36 additions & 0 deletions app-old/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[package]
edition = "2021"
name = "app"
version = "0.1.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
async-trait = "0.1.73"
axum = {version = "0.6.20", features = ["json"]}
bcrypt = "0.15.0"
chrono = "0.4.26"
dotenv = "0.15.0"
dotenvy = "0.15.7"
entity = {path = "../entity"}
error = "0.1.9"
fake = "2.6.1"
futures = "0.3.28"
http-body = "0.4.5"
jsonwebtoken = "8.3.0"
log = "0.4.19"
migration = {path = "../migration"}
sea-orm = {version = "0.12.2", features = ["macros", "debug-print", "with-uuid", "sqlx-postgres", "runtime-tokio-rustls"]}
serde = "1.0.181"
serde_json = "1.0.104"
simple_logger = "4.2.0"
this = "0.3.0"
thiserror = "1.0.44"
tokio = {version = "1.29.1", features = ["full"]}
tower-http = {version = "0.4.3", features = ["cors", "trace"]}
tracing = "0.1.37"
tracing-subscriber = {version = "0.3.17", features = ["env-filter"]}
uuid = "1.4.1"
validator = {version = "0.16.1", features = ["derive"]}
prost = {workspace = true}
tonic = {workspace = true}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by Cargo
# will have compiled files and executables
debug/
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

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
41 changes: 10 additions & 31 deletions app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,36 +1,15 @@
[package]
edition = "2021"
name = "app"
version = "0.1.0"
authors.workspace = true
description.workspace = true
documentation.workspace = true
edition.workspace = true
homepge.workspace = true
keywords.workspace = true
exclude.workspace = true
license-file.workspace = true
version.workspace = true
name = "uranium"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
async-trait = "0.1.73"
axum = {version = "0.6.20", features = ["json"]}
bcrypt = "0.15.0"
chrono = "0.4.26"
dotenv = "0.15.0"
dotenvy = "0.15.7"
entity = {path = "../entity"}
error = "0.1.9"
fake = "2.6.1"
futures = "0.3.28"
http-body = "0.4.5"
jsonwebtoken = "8.3.0"
log = "0.4.19"
migration = {path = "../migration"}
sea-orm = {version = "0.12.2", features = ["macros", "debug-print", "with-uuid", "sqlx-postgres", "runtime-tokio-rustls"]}
serde = "1.0.181"
serde_json = "1.0.104"
simple_logger = "4.2.0"
this = "0.3.0"
thiserror = "1.0.44"
tokio = {version = "1.29.1", features = ["full"]}
tower-http = {version = "0.4.3", features = ["cors", "trace"]}
tracing = "0.1.37"
tracing-subscriber = {version = "0.3.17", features = ["env-filter"]}
uuid = "1.4.1"
validator = {version = "0.16.1", features = ["derive"]}
prost = {workspace = true}
tonic = {workspace = true}
3 changes: 3 additions & 0 deletions app/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
15 changes: 15 additions & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
authors.workspace = true
description.workspace = true
documentation.workspace = true
edition.workspace = true
homepge.workspace = true
keywords.workspace = true
exclude.workspace = true
license-file.workspace = true
version.workspace = true
name="uranium-cli"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
3 changes: 3 additions & 0 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
2 changes: 1 addition & 1 deletion dashboard/app.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<NuxtRouteAnnouncer />
<NuxtWelcome />
<NuxtPage />
</div>
</template>
3 changes: 3 additions & 0 deletions dashboard/assets/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
12 changes: 10 additions & 2 deletions dashboard/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true }
})
devtools: { enabled: true },
css: ["~/assets/css/main.css"],
modules: ["nuxt-icon"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
});
Loading

0 comments on commit 026f942

Please sign in to comment.