Skip to content

BrandonEastwell/virtual-cafe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Café Server

Welcome to the Virtual Café server application! This server simulates a café environment where clients can place orders for tea or coffee.

Table of Contents

Getting Started

Prerequisites

  • Java Development Kit (JDK) installed on your machine.
  • Gson library. Download it from here and place the gson.jar file in the root directory.

Installation

navigate to the root of the file path

cd virtual-cafe

compile barista with gson

javac -cp ".:gson.jar" Barista.java

run barista

java -cp ".:gson.jar" Barista

compile customer

javac -cp "." Customer.java

run customer

java -cp "." Customer

Features

  • Multithreaded server architecture.
  • Simulates a dynamic café environment with waiting, brewing, and tray areas.
  • Handles multiple clients concurrently.
  • Authentication mechanism using a shared secret key.
  • Graceful handling of client exits and SIGTERM signals.
  • Logging of server states in the terminal and JSON file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages