Skip to content

silkentrance/swear-jar-task

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piggy Bank for Words

Backend

The backend uses Spring Boot.

Run using

> cd backend
> mvn spring-boot:run

API

GET /api/dashboard

Response
{
  "errorMessage": <string>,
  "members": [
    {
      "id": <number>,
      "name": <string>,
      "amountCalculated": <number>,
      "amountAdjusted": <number>
    }, ...
  ]
}

POST /api/penalty

Request
{
    "memberName": <string>,
    "amount": <number>
}
Response
{
    "errorMessage": <string>,
    "memberId": <number>,
    "memberName": <string>,
    "amount": <number>,
    "calculatedTotal": <number>
}

DELETE /api/penalty/{id}

Response
{
    "errorMessage": <string>
}

PATCH /api/penalty

Request
{
    "id": <number>,
    "amount": <number>
}
Response
{
    "errorMessage": <string>
    "id": <number>,
    "amount": <number>
}
PATCH /api/penalty_total
Request
{
    "memberId": <number>,
    "amount": <number>
}
Response
{
    "errorMessage": <string>,
    "memberId": <number>,
    "amount": <number>
}
GET /api/team_member/{id}
Response
{
  "errorMessage": <string>,
  "id": <number>,
  "name": <string>,
  "amountCalculated": <number>,
  "amountAdjusted": <number>,
  "penalties": [
    {
        "id": <number>,
        "dateTime": <datetime>,
        "amount": <number>
    }, ...
  ] 
}

Frontend

The frontend uses Vue 3 and Vite.

Run using

> cd frontend
> npm run dev

In your browser, navigate to

http://localhost:5173

NOTE: existing typing issues have not been resolved yet. So building this with npm run build will fail.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 63.6%
  • Vue 18.9%
  • TypeScript 11.9%
  • CSS 4.4%
  • Other 1.2%