Skip to content

Coffee Shop Web App – A demo showing how to build a web application powered by a SQL database

Notifications You must be signed in to change notification settings

ITU-DASYALab/introdb-coffeeshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Build and Start the Project

To build and start the Coffee Shop web app, you need to have the following software installed:

  • Java 17 (or higher)
  • Maven
  • Git

We give installation instructions for Linux/Mac and the Windows for Linux Subsystem. Please ask your teaching assistant if you are using PowerShell or Command Prompt on Windows.

Step 1: Clone the repository

git clone git@github.com:ITU-DASYALab/introdb-coffeeshop.git
cd introdb-coffeeshop

Step 2: Create the database file

Create a coffee.db file and execute the statements in init.sql using DuckDB:

duckdb coffee.db < init.sql

Step 3: Compile the project via Maven

mvn compile

Step 4: Start the project via Maven

mvn exec:java

Step 5: Open the web app

Open your browser and navigate to: http://localhost:8080

Notes:

If Java is not installed, install Java:

sudo apt install default-jdk -y

If Maven is not installed, install Maven:

sudo apt install maven

If git is not installed, install git:

sudo apt install git

About

Coffee Shop Web App – A demo showing how to build a web application powered by a SQL database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors