GithubHelp home page GithubHelp logo

not-a-potluck / back-end Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 3.0 329 KB

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.

Home Page: https://not-a-potluck.gebel.tech/

License: MIT License

Java 100.00%
java spring

back-end's Introduction

๐Ÿฅ˜ 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": "[email protected]",
    "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": "[email protected]",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 7,
                    "fname": "Adrienne",
                    "lname": "Emick",
                    "primaryemail": "[email protected]",
                    "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": "[email protected]",
            "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": "[email protected]",
                "responded": false,
                "attending": false
            },
            {
                "guestid": 7,
                "fname": "Adrienne",
                "lname": "Emick",
                "primaryemail": "[email protected]",
                "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": "[email protected]",
            "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": "[email protected]",
                "responded": false,
                "attending": false
            },
            {
                "guestid": 13,
                "fname": "fatima",
                "lname": "fatima",
                "primaryemail": "[email protected]",
                "responded": false,
                "attending": false
            }
        ]
    }
]
http://localhost:2019/guests/guests
[
    {
        "guestid": 6,
        "fname": "Alex",
        "lname": "Thilen",
        "primaryemail": "[email protected]",
        "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": "[email protected]",
                "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": "[email protected]",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 7,
                    "fname": "Adrienne",
                    "lname": "Emick",
                    "primaryemail": "[email protected]",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    },
    {
        "guestid": 7,
        "fname": "Adrienne",
        "lname": "Emick",
        "primaryemail": "[email protected]",
        "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": "[email protected]",
                "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": "[email protected]",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 7,
                    "fname": "Adrienne",
                    "lname": "Emick",
                    "primaryemail": "[email protected]",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    },
    {
        "guestid": 12,
        "fname": "harry",
        "lname": "harry",
        "primaryemail": "[email protected]",
        "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": "[email protected]",
                "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": "[email protected]",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 13,
                    "fname": "fatima",
                    "lname": "fatima",
                    "primaryemail": "[email protected]",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    },
    {
        "guestid": 13,
        "fname": "fatima",
        "lname": "fatima",
        "primaryemail": "[email protected]",
        "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": "[email protected]",
                "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": "[email protected]",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 13,
                    "fname": "fatima",
                    "lname": "fatima",
                    "primaryemail": "[email protected]",
                    "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": "[email protected]",
                "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": "[email protected]",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 7,
                    "fname": "Adrienne",
                    "lname": "Emick",
                    "primaryemail": "[email protected]",
                    "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": "[email protected]",
                "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": "[email protected]",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 7,
                    "fname": "Adrienne",
                    "lname": "Emick",
                    "primaryemail": "[email protected]",
                    "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": "[email protected]",
                "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": "[email protected]",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 13,
                    "fname": "fatima",
                    "lname": "fatima",
                    "primaryemail": "[email protected]",
                    "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": "[email protected]",
                "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": "[email protected]",
                    "responded": false,
                    "attending": false
                },
                {
                    "guestid": 13,
                    "fname": "fatima",
                    "lname": "fatima",
                    "primaryemail": "[email protected]",
                    "responded": false,
                    "attending": false
                }
            ]
        }
    }
]

POST

http://localhost:2019/createnewuser
{
  "username": "ava",
  "password": "password",
  "primaryemail": "[email protected]",
  "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/[email protected]
{
"potluck": {"potluckid": 9},
"fname": "test",
"lname": "test",
"primaryemail": "[email protected]"
}

PUT

http://localhost:2019/users/user/2
{
    "username": "laurenemick",
    "password": "password",
    "primaryemail": "[email protected]",
    "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

back-end's People

Contributors

harryhenrygebel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.