Skip to content
This repository has been archived by the owner on Jun 19, 2022. It is now read-only.
/ feup-ltw-proj Public archive

Group project for the Languages and Web Technologies course @ FEUP

Notifications You must be signed in to change notification settings

Naapperas/feup-ltw-proj

Repository files navigation

XauFome

Group project for the Languages and Web Technologies course @ FEUP

Proposed problem

Building a website ala Uber Eats: users can order dishes and menus, leave reviews on establishments or setup their own restaurant.

Grade: N/A

Features

  • Register/Login/Logout
  • Edit profile (including image)
  • Add/Remove restaurants
  • Edit restaurant (including image)
  • Add/Delete dishes
  • Edit dishes (including images)
  • Add/Delete menus
  • Edit menus (including images)
  • List reviews
  • Respond to reviews
  • List orders
  • Change order state
  • Search restaurants, dishes, menus
  • Filter search by restaurant score and dish price
  • Order dishes/menus
  • Mark restaurants/dishes as favorites
  • Review a restaurant
  • Light and dark Modes
  • REST API

REST API features

endpoint method feature
/api GET Health check
/api/cart GET Get items in cart
/api/cart POST Add/remove items from cart
/api/category GET Get one or all categories
/api/dish GET Get one or all dishes
/api/dish POST Edit/create a dish
/api/dish DELETE Delete a dish
/api/dish/categories GET Get a dish's categories
/api/dish/categories PUT Add a category to a dish
/api/dish/categories DELETE Remove a category from a dish
/api/login POST Login
/api/login DELETE Logout
/api/menu GET Get one or all menus
/api/menu POST Edit/create a menu
/api/menu DELETE Delete a menu
/api/menu/dishes GET Get a menu's dishes
/api/menu/dishes PUT Add a dish to a menu
/api/menu/dishes DELETE Remove a dish from a menu
/api/register POST Register
/api/restaurant GET Get one or all restaurants
/api/restaurant POST Edit/create a restaurant
/api/restaurant DELETE Delete a restaurant
/api/restaurant/categories GET Get a restaurant's categories
/api/restaurant/categories PUT Add a category to a restaurant
/api/restaurant/categories DELETE Remove a category from a restaurant
/api/restaurant/dishes GET Get a restaurant's dishes
/api/restaurant/menus GET Get a restaurant's menus
/api/restaurant/orders GET Get a restaurant's orders
/api/restaurant/orders POST Change the state of an order
/api/restaurant/reviews GET Get a restaurant's reviews
/api/review GET Get one or all reviews
/api/review POST Post a review
/api/review/response GET Get a review response
/api/review/response POST Reply to a review
/api/search GET Search dishes/menus/restaurants
/api/user GET Get one or all users
/api/user POST Edit a user
/api/user DELETE Delete a user
/api/user/favorite_dishes GET Get a user's favorite dishes
/api/user/favorite_dishes PUT Add a dish to a user's favorites
/api/user/favorite_dishes DELETE Remove a dish from a user's favorites
/api/user/favorite_dishes POST Toggle a dish from a user's favorites
/api/user/favorite_restaurants GET Get a user's favorite restaurants
/api/user/favorite_restaurants PUT Add a restaurant to a user's favorites
/api/user/favorite_restaurants DELETE Remove a restaurant from a user's favorites
/api/user/favorite_restaurants POST Toggle a restaurant from a user's favorites
/api/user/orders GET Get a user's past orders
/api/user/restaurants GET Get a user's restaurants

Credentials

user/12345678

owner/12345678

Instructions

Requires php 8.1.

Run the script createdb in the database folder to create a simple example database.

About

Group project for the Languages and Web Technologies course @ FEUP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published