maya-gawinowski / sharedexpenses-app

0 stars 0 forks source link

Note on the demo data

After launching the app, you can log as one of the demo users:

Elena

Run

To run backend move to the backend directory and run

npm run start

This will run a server listening on localhost:3000

One group with four users is hardcoded.

REST API requests

Backend exposes methods (example body provided for post methods):

{
  "payerId": "1",
  "participantsIds": ["1", "2", "3", "4"],
  "amount": 100,
  "date": "2023-11-18T21:16:26.567Z",
  "description": "For beers"
}

Debts are calculated automatically based on expenses, thus no POST debts method is possible.

{
  "userIds": ["1", "3"],
  "name": "group 1",
  "description": "test group"
  "currency": "EUR"
}
{ "userIds": [1, 4] }

To be implemented: