Note: You can find the frontend codebase (and set up instructions) for this project here
In this project, I further expanded my skills with React. I was able to build a shopping basket function that allows the user to add items to their cart, view costs and amend quantities.
Furthermore, I was able to use my new Java skills to create a backend server with CRUD capability using the Spring boot framework.
To provide an online ordering tool to allow customers to place orders at their favourite pizza restaurant.
- React for front end development.
- Java Spring Boot for front end development.
- PostgresSQl to create a database.
- GitHub and Git for version control.
- Users can choose from a selection of portion sizes for various food items
- Users can add food items to a basket
- Users can adjust quantity of each food item in food basket
- Users can remove food items from the food basket
- Users can review subtotal, additional fees and total price
To explore the codebase follow this set-up:
- You must open psql from the root directory of this project!
- Connect to psql
- Create the database using the psql command CREATE DATABASE pizza;
- Connect to the database using the pqsl command \c pizza;
- Run the query we have saved in the file from the root directory of this project by running \i ./db/migrations/01_create_pizza_price_table.sql
- Run the query we have saved in the file from the root directory of this project by running \i ./db/migrations/02_create_pizza_table.sql
- Run the query we have saved in the file from the root directory of this project by running \i ./db/migrations/03_add_data_to_pizza_price_table.sql
- Run the query we have saved in the file from the root directory of this project by running \i ./db/migrations/04_add_data_to_pizza_table.sql
- Assuming Intellij is used, go to: Run -> Edit Configurations -> Modify options -> Environment Variables
- Add the following variables:
- Variable Name: DB_PASS Value: YOUR DATABASE PASS HERE
- Variable Name: DB_USERNAME Value: YOUR DATABASE NAME HERE
- Variable Name: DB_URL Value: jdbc:postgresql://localhost:5432/pizza
Run server: src -> main -> java -> Run File: PizzaDeliveryBackendApplication