projects/spendwise
SpendWise Money Manager
Personal finance tracker with JWT auth, category reports and Excel support, Jest and Supertest coverage, Prometheus metrics with alert rules and a GitHub Actions release pipeline.Ứng dụng quản lý thu chi cá nhân có xác thực JWT, báo cáo theo danh mục, hỗ trợ Excel, test bằng Jest và Supertest, đo lường bằng Prometheus kèm cảnh báo và pipeline phát hành GitHub Actions.
- 2026
- Full-stack
- DevOps

The problemVấn đề
Most people know roughly what they earn but not where it goes each month. SpendWise makes daily income and spending quick to record and easy to review, and doubles as practice for the full DevOps loop: tests, CI/CD, deployment and monitoring.Nhiều người biết mình kiếm được bao nhiêu nhưng không rõ tiền đi đâu mỗi tháng. SpendWise giúp ghi thu chi hằng ngày thật nhanh và xem lại dễ dàng, đồng thời là bài luyện trọn vòng DevOps: test, CI/CD, triển khai và giám sát.
How it's builtCách làm
- A React (Vite) client and an Express REST API on MongoDB, with Mongoose models for users, categories and transactions, JWT sign-in, bcrypt-hashed passwords and avatar uploads.Client React (Vite) và REST API Express trên MongoDB, model Mongoose cho người dùng, danh mục và giao dịch, đăng nhập bằng JWT, mật khẩu băm bằng bcrypt và tải ảnh đại diện.
- API tests with Jest and Supertest. A CI workflow runs them and builds the client on every push.Test API bằng Jest và Supertest. Workflow CI chạy test và build client ở mỗi lần push.
- A CD workflow bundles a release, copies it to a VPS over SCP, reloads the app with PM2, runs a health check and reports the result to Telegram.Workflow CD đóng gói bản phát hành, chép lên VPS qua SCP, khởi động lại bằng PM2, kiểm tra health check rồi gửi kết quả về Telegram.
- The API exposes Prometheus metrics, and alert rules fire when the API goes down or the server runs low on CPU, memory or disk.API xuất số liệu cho Prometheus, luật cảnh báo báo động khi API sập hoặc máy chủ thiếu CPU, RAM hay ổ đĩa.
Key featuresTính năng chính
- Record income and expenses by categoryGhi khoản thu và khoản chi theo danh mục
- Monthly totals and a spending pie chartTổng thu chi theo tháng và biểu đồ tròn theo danh mục
- Monthly budgets per category with progressNgân sách theo tháng cho từng danh mục, kèm tiến độ
- Insights comparing this month with the previous oneGợi ý so sánh thu chi tháng này với tháng trước
- Excel report export with an overview sheet and a transaction listXuất báo cáo Excel gồm trang tổng quan và danh sách giao dịch
- Custom categories and a profile with avatarTự tạo danh mục, hồ sơ có ảnh đại diện