[refactor] removed analytics
, config
, and modular crates to simplify the codebase and streamline architecture
This commit is contained in:
@@ -11,6 +11,8 @@ once_cell = { workspace = true }
|
||||
toml = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
async-trait = "0.1.89"
|
||||
axum = { workspace = true }
|
||||
sqlx = { workspace = true, features = ["sqlite"] }
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -2,4 +2,5 @@
|
||||
|
||||
pub mod config;
|
||||
pub mod types;
|
||||
pub mod services;
|
||||
pub mod services;
|
||||
pub mod api;
|
||||
|
@@ -1,6 +1,16 @@
|
||||
use crate::types::Health;
|
||||
use async_trait::async_trait;
|
||||
|
||||
// Submodules that host various domain services. These were refactored from the
|
||||
// legacy root src folder into this workspace crate. Each component is its own module file.
|
||||
pub mod summary_service;
|
||||
pub mod news_service;
|
||||
pub mod scraping_service;
|
||||
pub mod tagging_service;
|
||||
pub mod analytics_service;
|
||||
pub mod sharing_service;
|
||||
pub(crate) mod content_processor;
|
||||
|
||||
// Implement your service traits here. Example:
|
||||
#[async_trait]
|
||||
pub trait HealthService: Send + Sync {
|
||||
|
@@ -0,0 +1,4 @@
|
||||
//! Analytics service module.
|
||||
//! Implement logic for tracking and aggregating analytics here.
|
||||
|
||||
// Placeholder for analytics-related types and functions.
|
@@ -0,0 +1,3 @@
|
||||
//! Content processor utilities shared by services.
|
||||
|
||||
// Placeholder module for content processing helpers (e.g., cleaning, tokenization).
|
4
backend-rust/crates/api/src/services/news_service.rs
Normal file
4
backend-rust/crates/api/src/services/news_service.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
//! News service module.
|
||||
//! Implement logic related to news retrieval/management here.
|
||||
|
||||
// Placeholder for news-related types and functions.
|
4
backend-rust/crates/api/src/services/scraping_service.rs
Normal file
4
backend-rust/crates/api/src/services/scraping_service.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
//! Scraping service module.
|
||||
//! Implement logic related to web scraping, fetchers, and extractors here.
|
||||
|
||||
// Placeholder for scraping-related types and functions.
|
4
backend-rust/crates/api/src/services/sharing_service.rs
Normal file
4
backend-rust/crates/api/src/services/sharing_service.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
//! Sharing service module.
|
||||
//! Implement logic related to content sharing here.
|
||||
|
||||
// Placeholder for sharing-related types and functions.
|
4
backend-rust/crates/api/src/services/summary_service.rs
Normal file
4
backend-rust/crates/api/src/services/summary_service.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
//! Summary service module.
|
||||
//! Implement logic for generating summaries from articles here.
|
||||
|
||||
// Placeholder for summary-related types and functions.
|
4
backend-rust/crates/api/src/services/tagging_service.rs
Normal file
4
backend-rust/crates/api/src/services/tagging_service.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
//! Tagging service module.
|
||||
//! Implement logic related to tagging articles and managing tags here.
|
||||
|
||||
// Placeholder for tagging-related types and functions.
|
Reference in New Issue
Block a user