Skip to content

Application for managing splits with friends or family when we want to split the amount which we spend

Notifications You must be signed in to change notification settings

paerarason/Splitwise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Splitwise

Application for managing splits with friends or family when we want to split the amount which we spend Database Schema

Flow to Run the Application

  • 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

Endpoints with Authentication token and gives current balance of the account

GET /api/account/spent

Gives the totals spends by the Account

POST /api/account/

endpoint that creates account

POST /api/groups/add

Endpoint to GET the transaction previously

GET /api/account/history
      {
        "username":"",
        "password":"",
        "confirmPassword":"",
        "email":""
      }
POST /api/groups/add

endpoint to ADD User to the group

example data

    {
      "account_id":[3,5],
      "group_id":6
    }
GET /api/transaction/send/:id

API to send the amount to the paricular Group

About

Application for managing splits with friends or family when we want to split the amount which we spend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages