Commit Graph

115 Commits

Author SHA1 Message Date
GW_MC
f71cf370cd Refactor AppState and update database connection handling; integrate SettingsService 2025-12-02 16:56:01 +08:00
GW_MC
fae951c902 Add async-trait and sea-orm dependencies; implement SettingsService for configuration management 2025-12-02 16:55:39 +08:00
GW_MC
8b98590a1e Add service_error module for error handling 2025-12-02 16:55:08 +08:00
GW_MC
6cd55d06a2 Implement basic middleware handling
All checks were successful
Test / verify-generated-code (pull_request) Successful in 8m1s
Test / test (pull_request) Successful in 1m9s
Test / lint (pull_request) Successful in 1m5s
2025-12-02 15:47:56 +08:00
GW_MC
547d73fab7 temp allow deadcode for AppState struct
All checks were successful
Test / verify-generated-code (pull_request) Successful in 8m32s
Test / test (pull_request) Successful in 1m10s
Test / lint (pull_request) Successful in 1m7s
2025-11-27 19:05:41 +08:00
GW_MC
537737b1cc refactor configs into a crate 2025-11-27 18:59:40 +08:00
GW_MC
bb622df89b Basic route structure 2025-11-27 18:50:11 +08:00
GW_MC
e849b71a40 Implement API setup with configuration management and startup tasks
- Add `Cargo.toml` for API with dependencies.
- Create `config.rs` for managing application settings.
- Implement logging and server settings in `config.rs`.
- Add `main.rs` to initialize the application and handle database connections.
- Introduce `task` module with startup tasks, including database migrations.
- Update `.gitignore` to exclude `config.yaml` and remove `.gitkeep`.
2025-11-26 19:45:37 +08:00
GW_MC
f9218e0927 Add support for environment file generation in EnvFile struct
- Introduced new methods for writing environment files in YAML and DotEnv formats.
- Updated EnvFile struct to include a buffer for storing key-value pairs.
- Modified write_env_files function to create and write to environment files based on configuration.
- Added tests for environment file writing functionality.
2025-11-25 21:16:21 +08:00
GW_MC
800c55238d fix clippy
All checks were successful
Test / test (pull_request) Successful in 3m14s
Test / verify-generated-code (pull_request) Successful in 3m43s
Test / lint (pull_request) Successful in 58s
2025-11-19 19:59:21 +08:00
GW_MC
6d1888e6c3 Fix clippy warnings
Some checks failed
Test / verify-generated-code (pull_request) Successful in 8m9s
Test / test (pull_request) Successful in 7m54s
Test / lint (pull_request) Failing after 3m21s
2025-11-19 19:27:43 +08:00
GW_MC
43c6b54ebd add gitkeep for api
Some checks failed
Test / verify-generated-code (pull_request) Successful in 7m53s
Test / test (pull_request) Successful in 8m3s
Test / lint (pull_request) Failing after 7m21s
2025-11-15 12:52:40 +08:00
GW_MC
829c4ef3e3 Add CLI application with database migration and entity generation commands
- Introduced a new CLI application in the `apps/cli` directory.
- Implemented commands for database migration and entity generation.
- Updated `Cargo.toml` files to include necessary dependencies.
- Enhanced the `justfile` to facilitate CLI command execution.
- Modified workspace configuration to include the new CLI application.
2025-11-13 21:26:31 +08:00
GW_MC
7a1617e1ee fix invalid simulate location and sqlite connection for seaorm 2025-11-13 20:11:04 +08:00
GW_MC
6b3172d88b Add container simulation with PostgreSQL and SQLite support 2025-11-11 20:53:20 +08:00