A RESTful backend API for managing ledger accounts and transactions using Node.js, Express, and MongoDB.
This service enables user authentication, account creation, balance tracking and secure ledger transactions with idempotency support.
β
User registration, login & logout
β
JWT-based authentication with protected routes
β
Create and list user accounts
β
Get account balance
β
Create financial transactions between accounts
β
Idempotent transaction handling
β
Initial funds injection from system account
β
MongoDB data persistence with Mongoose
This backend is ideal for powering finance, wallet or ledger applications.
- Node.js β JavaScript runtime
- Express β Web server & routing
- MongoDB β Database
- Mongoose β ODM for MongoDB
- dotenv β Environment variable management
- bcryptjs β Password hashing
- jsonwebtoken β Token authentication
- cookie-parser β Cookie handling
- nodemailer β Email notifications
git clone https://github.com/pranjal270/backend-ledger.git
cd backend-ledger