wealthfolio icon indicating copy to clipboard operation
wealthfolio copied to clipboard

[Refactor] Add src-core as the independent lib to any stack

Open maidh91 opened this issue 5 months ago • 2 comments

Summary

  • Add src-core directory to contain Rust only code to handle all business logic
  • src-tauri contain commands only and setup to build desktop apps
  • Directory structure
wealthfolio/
├── src                   # React for frontend
├── src-tauri          # Tauri to build desktop apps
├── src-core          # Rust for backend

=> src-core is independent now, and can be reused in any tool (not just Tauri)

File changes

  • Most of the files are just moved from src-tauri to src-core
  • All dependencies (except tauri ones) are moved from src-tauri/Cargo.toml to src-core/Cargo.toml
  • Refactor all commands in src-tauri into a single place

maidh91 avatar Sep 10 '24 05:09 maidh91