Application for managing splits with friends or family when we want to split the amount which we spend
- Create a database Locally
- change/add the database name to the .env file
- run the script in database/Splitwise.sql to create tables
- run database/migration.sql to populate some test data to database
Then RUN
go mod tidy
go run main.go
GET /api/account/balance
GET /api/account/spent
POST /api/account/
POST /api/groups/add
GET /api/account/history
{
"username":"",
"password":"",
"confirmPassword":"",
"email":""
}
POST /api/groups/add
example data
{
"account_id":[3,5],
"group_id":6
}
GET /api/transaction/send/:id