[refactor] removed analytics, config, and modular crates to simplify the codebase and streamline architecture

This commit is contained in:
2025-08-20 16:46:27 +02:00
parent d37daf02f6
commit 57a7b42b9d
41 changed files with 1057 additions and 1450 deletions

View File

@@ -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

View File

@@ -2,4 +2,5 @@
pub mod config;
pub mod types;
pub mod services;
pub mod services;
pub mod api;

View File

@@ -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 {

View File

@@ -0,0 +1,4 @@
//! Analytics service module.
//! Implement logic for tracking and aggregating analytics here.
// Placeholder for analytics-related types and functions.

View File

@@ -0,0 +1,3 @@
//! Content processor utilities shared by services.
// Placeholder module for content processing helpers (e.g., cleaning, tokenization).

View File

@@ -0,0 +1,4 @@
//! News service module.
//! Implement logic related to news retrieval/management here.
// Placeholder for news-related types and functions.

View 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.

View File

@@ -0,0 +1,4 @@
//! Sharing service module.
//! Implement logic related to content sharing here.
// Placeholder for sharing-related types and functions.

View File

@@ -0,0 +1,4 @@
//! Summary service module.
//! Implement logic for generating summaries from articles here.
// Placeholder for summary-related types and functions.

View 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.