A MERN backend to split expenses among a group with smart settlements.
- Add and view people
- Add expenses (equal, exact, percentage)
- View who owes how much
- Auto-settlement logic
- API error handling
https://splitly-backend.onrender.com
- Shantanu
- Sanket
- Om
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/settlements/getPeople |
Get list of all people |
| GET | /api/expense/getExpenses |
Get list of all expenses |
| POST | /api/expense/addExpense |
Add a new expense |
| PUT | /api/expense/updateExpense/:id |
Update an existing expense |
| DELETE | /api/expense/deleteExpense/:id |
Delete an expense |
| GET | /api/settlements/getSettlements |
Get settlement summary (who owes whom) |
| GET | /api/settlements/getBalances |
Get balance per person |
- Clone repo
- Install dependencies: npm install
- Create
.env: MONGODB_URL='mongodb+srv://vedantmohol18:Krsna18@splitly.l8w4hko.mongodb.net/splitly?retryWrites=true&w=majority&appName=splitly' PORT=3000 - Run dev server: npm run dev
- Backend: Render
- DB: MongoDB Atlas
- 📁 Public Gist: Postman Collection Link
- No local setup needed — everything runs on deployed backend
- Pre-populated with:
- 3 people (Shantanu, Sanket, Om)
- Sample expenses with all split types
- Balances/summary are auto-computed