Skip to content

Create events such as a potluck, invite guests, and add food items which guest can then claim. Group project. Functioned at Backend Developer using Java, Spring, and PostgreSQL.

License

Notifications You must be signed in to change notification settings

Not-a-Potluck/back-end

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🥘 Not-a-Potluck Back End Product Overview

A event organization app where users can create an event, invite guests, and add food items which guest can then claim!

User Stories

  1. As an organizer I can create an upcoming potluck and invite my friends to attend

  2. As an organizer I can adjust dates, times and locations of the potluck

  3. As an organizer I can use the list feature in my app to add food items that we'd like to see at the potluck

  4. As a guest to a potluck I want to be able to confirm that I'm going to the upcoming event

  5. As a guest I'd like to be able to select which items I'd like to be responsible for bringing

Base URL

Contributors

Harry Gebel Josh Glantz Lauren Emick Ava Wingfield
React II Engineer React I Engineer Back End Engineer React II Engineer
Virginia Scirrotto Fatima Rizvi Samantha Dutcher
Front End Engineer Front End Engineer Front End Engineer

Tech Stack

  • Java
  • Spring Boot
  • JUnit 4
  • PostgreSQL
  • OAuth2
  • Swagger
  • Maven

APIs

Front End deployed via netlify

Back End deployed via Heroku

Endpoints

GET

http://localhost:2019/users/user/2
{
    "userid": 2,
    "username": "laurenemick",
    "primaryemail": "lauren@lauren.com",
    "imageurl": null,
    "potlucks": [
        {
            "potluckid": 3,
            "eventname": "Lunch at Gasworks",
            "date": "09/01/2020",
            "time": "11:30am",
            "location": "Gasworks park",
            "description": "North side, look for red umbrella",
            "foods": [
                {
                    "foodid": 4,
                    "foodname": "pizza"
                },
                {
                    "foodid": 5,
                    "foodname": "salad"
                }
            ],
            "guests": [
                {
                    "guestid": 6,
                    "fname": "Alex",
                    "lname": "Thilen",
                    "primaryemail": "alex@alex.com",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 7,
                    "fname": "Adrienne",
                    "lname": "Emick",
                    "primaryemail": "adj@adj.com",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    ],
    "roles": [
        {
            "role": {
                "roleid": 1,
                "name": "USER"
            }
        }
    ]
}
http://localhost:2019/potlucks/potlucks
[
    {
        "potluckid": 3,
        "eventname": "Lunch at Gasworks",
        "date": "09/01/2020",
        "time": "11:30am",
        "location": "Gasworks park",
        "description": "North side, look for red umbrella",
        "user": {
            "userid": 2,
            "username": "laurenemick",
            "primaryemail": "lauren@lauren.com",
            "imageurl": null,
            "roles": [
                {
                    "role": {
                        "roleid": 1,
                        "name": "USER"
                    }
                }
            ]
        },
        "foods": [
            {
                "foodid": 4,
                "foodname": "pizza"
            },
            {
                "foodid": 5,
                "foodname": "salad"
            }
        ],
        "guests": [
            {
                "guestid": 6,
                "fname": "Alex",
                "lname": "Thilen",
                "primaryemail": "alex@alex.com",
                "responded": false,
                "attending": false
            },
            {
                "guestid": 7,
                "fname": "Adrienne",
                "lname": "Emick",
                "primaryemail": "adj@adj.com",
                "responded": false,
                "attending": false
            }
        ]
    },
    {
        "potluckid": 9,
        "eventname": "Halloween Party",
        "date": "10/31/2020",
        "time": "4:00pm",
        "location": "1111 90th pl ne, Seattle WA",
        "description": "Black and orange balloons by gate",
        "user": {
            "userid": 8,
            "username": "hannah",
            "primaryemail": "hannah@hannah.com",
            "imageurl": null,
            "roles": [
                {
                    "role": {
                        "roleid": 1,
                        "name": "USER"
                    }
                }
            ]
        },
        "foods": [
            {
                "foodid": 10,
                "foodname": "burgers"
            },
            {
                "foodid": 11,
                "foodname": "salad"
            }
        ],
        "guests": [
            {
                "guestid": 12,
                "fname": "harry",
                "lname": "harry",
                "primaryemail": "harry@harry.com",
                "responded": false,
                "attending": false
            },
            {
                "guestid": 13,
                "fname": "fatima",
                "lname": "fatima",
                "primaryemail": "fatima@fatima.com",
                "responded": false,
                "attending": false
            }
        ]
    }
]
http://localhost:2019/guests/guests
[
    {
        "guestid": 6,
        "fname": "Alex",
        "lname": "Thilen",
        "primaryemail": "alex@alex.com",
        "responded": false,
        "attending": false,
        "potluck": {
            "potluckid": 3,
            "eventname": "Lunch at Gasworks",
            "date": "09/01/2020",
            "time": "11:30am",
            "location": "Gasworks park",
            "description": "North side, look for red umbrella",
            "user": {
                "userid": 2,
                "username": "laurenemick",
                "primaryemail": "lauren@lauren.com",
                "imageurl": null,
                "roles": [
                    {
                        "role": {
                            "roleid": 1,
                            "name": "USER"
                        }
                    }
                ]
            },
            "foods": [
                {
                    "foodid": 4,
                    "foodname": "pizza"
                },
                {
                    "foodid": 5,
                    "foodname": "salad"
                }
            ],
            "guests": [
                {
                    "guestid": 6,
                    "fname": "Alex",
                    "lname": "Thilen",
                    "primaryemail": "alex@alex.com",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 7,
                    "fname": "Adrienne",
                    "lname": "Emick",
                    "primaryemail": "adj@adj.com",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    },
    {
        "guestid": 7,
        "fname": "Adrienne",
        "lname": "Emick",
        "primaryemail": "adj@adj.com",
        "responded": false,
        "attending": false,
        "potluck": {
            "potluckid": 3,
            "eventname": "Lunch at Gasworks",
            "date": "09/01/2020",
            "time": "11:30am",
            "location": "Gasworks park",
            "description": "North side, look for red umbrella",
            "user": {
                "userid": 2,
                "username": "laurenemick",
                "primaryemail": "lauren@lauren.com",
                "imageurl": null,
                "roles": [
                    {
                        "role": {
                            "roleid": 1,
                            "name": "USER"
                        }
                    }
                ]
            },
            "foods": [
                {
                    "foodid": 4,
                    "foodname": "pizza"
                },
                {
                    "foodid": 5,
                    "foodname": "salad"
                }
            ],
            "guests": [
                {
                    "guestid": 6,
                    "fname": "Alex",
                    "lname": "Thilen",
                    "primaryemail": "alex@alex.com",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 7,
                    "fname": "Adrienne",
                    "lname": "Emick",
                    "primaryemail": "adj@adj.com",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    },
    {
        "guestid": 12,
        "fname": "harry",
        "lname": "harry",
        "primaryemail": "harry@harry.com",
        "responded": false,
        "attending": false,
        "potluck": {
            "potluckid": 9,
            "eventname": "Halloween Party",
            "date": "10/31/2020",
            "time": "4:00pm",
            "location": "1111 90th pl ne, Seattle WA",
            "description": "Black and orange balloons by gate",
            "user": {
                "userid": 8,
                "username": "hannah",
                "primaryemail": "hannah@hannah.com",
                "imageurl": null,
                "roles": [
                    {
                        "role": {
                            "roleid": 1,
                            "name": "USER"
                        }
                    }
                ]
            },
            "foods": [
                {
                    "foodid": 10,
                    "foodname": "burgers"
                },
                {
                    "foodid": 11,
                    "foodname": "salad"
                }
            ],
            "guests": [
                {
                    "guestid": 12,
                    "fname": "harry",
                    "lname": "harry",
                    "primaryemail": "harry@harry.com",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 13,
                    "fname": "fatima",
                    "lname": "fatima",
                    "primaryemail": "fatima@fatima.com",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    },
    {
        "guestid": 13,
        "fname": "fatima",
        "lname": "fatima",
        "primaryemail": "fatima@fatima.com",
        "responded": false,
        "attending": false,
        "potluck": {
            "potluckid": 9,
            "eventname": "Halloween Party",
            "date": "10/31/2020",
            "time": "4:00pm",
            "location": "1111 90th pl ne, Seattle WA",
            "description": "Black and orange balloons by gate",
            "user": {
                "userid": 8,
                "username": "hannah",
                "primaryemail": "hannah@hannah.com",
                "imageurl": null,
                "roles": [
                    {
                        "role": {
                            "roleid": 1,
                            "name": "USER"
                        }
                    }
                ]
            },
            "foods": [
                {
                    "foodid": 10,
                    "foodname": "burgers"
                },
                {
                    "foodid": 11,
                    "foodname": "salad"
                }
            ],
            "guests": [
                {
                    "guestid": 12,
                    "fname": "harry",
                    "lname": "harry",
                    "primaryemail": "harry@harry.com",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 13,
                    "fname": "fatima",
                    "lname": "fatima",
                    "primaryemail": "fatima@fatima.com",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    }
]
http://localhost:2019/foods/foods
[
    {
        "foodid": 4,
        "foodname": "pizza",
        "potluck": {
            "potluckid": 3,
            "eventname": "Lunch at Gasworks",
            "date": "09/01/2020",
            "time": "11:30am",
            "location": "Gasworks park",
            "description": "North side, look for red umbrella",
            "user": {
                "userid": 2,
                "username": "laurenemick",
                "primaryemail": "lauren@lauren.com",
                "imageurl": null,
                "roles": [
                    {
                        "role": {
                            "roleid": 1,
                            "name": "USER"
                        }
                    }
                ]
            },
            "foods": [
                {
                    "foodid": 4,
                    "foodname": "pizza"
                },
                {
                    "foodid": 5,
                    "foodname": "salad"
                }
            ],
            "guests": [
                {
                    "guestid": 6,
                    "fname": "Alex",
                    "lname": "Thilen",
                    "primaryemail": "alex@alex.com",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 7,
                    "fname": "Adrienne",
                    "lname": "Emick",
                    "primaryemail": "adj@adj.com",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    },
    {
        "foodid": 5,
        "foodname": "salad",
        "potluck": {
            "potluckid": 3,
            "eventname": "Lunch at Gasworks",
            "date": "09/01/2020",
            "time": "11:30am",
            "location": "Gasworks park",
            "description": "North side, look for red umbrella",
            "user": {
                "userid": 2,
                "username": "laurenemick",
                "primaryemail": "lauren@lauren.com",
                "imageurl": null,
                "roles": [
                    {
                        "role": {
                            "roleid": 1,
                            "name": "USER"
                        }
                    }
                ]
            },
            "foods": [
                {
                    "foodid": 4,
                    "foodname": "pizza"
                },
                {
                    "foodid": 5,
                    "foodname": "salad"
                }
            ],
            "guests": [
                {
                    "guestid": 6,
                    "fname": "Alex",
                    "lname": "Thilen",
                    "primaryemail": "alex@alex.com",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 7,
                    "fname": "Adrienne",
                    "lname": "Emick",
                    "primaryemail": "adj@adj.com",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    },
    {
        "foodid": 10,
        "foodname": "burgers",
        "potluck": {
            "potluckid": 9,
            "eventname": "Halloween Party",
            "date": "10/31/2020",
            "time": "4:00pm",
            "location": "1111 90th pl ne, Seattle WA",
            "description": "Black and orange balloons by gate",
            "user": {
                "userid": 8,
                "username": "hannah",
                "primaryemail": "hannah@hannah.com",
                "imageurl": null,
                "roles": [
                    {
                        "role": {
                            "roleid": 1,
                            "name": "USER"
                        }
                    }
                ]
            },
            "foods": [
                {
                    "foodid": 10,
                    "foodname": "burgers"
                },
                {
                    "foodid": 11,
                    "foodname": "salad"
                }
            ],
            "guests": [
                {
                    "guestid": 12,
                    "fname": "harry",
                    "lname": "harry",
                    "primaryemail": "harry@harry.com",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 13,
                    "fname": "fatima",
                    "lname": "fatima",
                    "primaryemail": "fatima@fatima.com",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    },
    {
        "foodid": 11,
        "foodname": "salad",
        "potluck": {
            "potluckid": 9,
            "eventname": "Halloween Party",
            "date": "10/31/2020",
            "time": "4:00pm",
            "location": "1111 90th pl ne, Seattle WA",
            "description": "Black and orange balloons by gate",
            "user": {
                "userid": 8,
                "username": "hannah",
                "primaryemail": "hannah@hannah.com",
                "imageurl": null,
                "roles": [
                    {
                        "role": {
                            "roleid": 1,
                            "name": "USER"
                        }
                    }
                ]
            },
            "foods": [
                {
                    "foodid": 10,
                    "foodname": "burgers"
                },
                {
                    "foodid": 11,
                    "foodname": "salad"
                }
            ],
            "guests": [
                {
                    "guestid": 12,
                    "fname": "harry",
                    "lname": "harry",
                    "primaryemail": "harry@harry.com",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 13,
                    "fname": "fatima",
                    "lname": "fatima",
                    "primaryemail": "fatima@fatima.com",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    }
]

POST

http://localhost:2019/createnewuser
{
  "username": "ava",
  "password": "password",
  "primaryemail": "ava@ava.com",
  "imageurl": "https://avatars1.githubusercontent.com/u/64428775?s=460&u=b978293f3ab12800a3f6d3caf917e22fe4de55a1&v=4"
}
http://localhost:2019/potlucks/user/2/potluck
{
  "user": {"userid": 2},
  "eventname": "test",
  "date": "09/01/2020",
  "time": "11:30am",
  "location": "test",
  "description": "test"
}
http://localhost:2019/foods/potluck/9/food/test
{
  "potluck": {"potluckid": 9},
  "foodname":"test"
}
http://localhost:2019/guests/potluck/9/guest/test/test/test@test.com
{
"potluck": {"potluckid": 9},
"fname": "test",
"lname": "test",
"primaryemail": "test@test.com"
}

PUT

http://localhost:2019/users/user/2
{
    "username": "laurenemick",
    "password": "password",
    "primaryemail": "lauren@emick.com",
    "imageurl": null
}

DELETE

http://localhost:2019/potlucks/potluck/9
No Body Data

Status OK
http://localhost:2019/guests/guest/13
No Body Data

Status OK

About

Create events such as a potluck, invite guests, and add food items which guest can then claim. Group project. Functioned at Backend Developer using Java, Spring, and PostgreSQL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages