Go to file
2021-07-25 12:33:10 +02:00
docs Reformatting, Refactoring, Optimization 2021-07-23 11:22:45 +02:00
src/de/dhbw Reformatting, Refactoring, Optimization 2021-07-23 11:22:45 +02:00
uml exported uml diagram 2021-07-23 11:34:52 +02:00
.gitignore - Added .gitignore 2021-06-07 13:59:23 +02:00
create_javadoc.sh Added README.md and zip file 2021-07-25 12:33:10 +02:00
create_zip.sh Added README.md and zip file 2021-07-25 12:33:10 +02:00
Kontaktprojekt_20C_9829423.zip Added README.md and zip file 2021-07-25 12:33:10 +02:00
README.md Added README.md and zip file 2021-07-25 12:33:10 +02:00

Programmieren 2 Contact-DB

Compile

  1. Compile project:

    javac -sourcepath src -d build $(find src -path src/de/dhbw/unit -prune -false -o -name *.java)
    
  2. Copy resources:

    mkdir build/de/dhbw/contactdb/db && cp src/de/dhbw/contactdb/db/contacts2021.db build/de/dhbw/contactdb/db/contacts2021.db
    

Tests

  1. Tests by Johannes Unterstein

    java -cp build/ de.dhbw.contactdb.ProjectTest.ProjektTester
    
  2. Unittests Tests are included in de.dhbw.unit.ProjectTest

    The easiest way to run them is by using IntelliJ or any other IDE.

Usage

After compiling (and testing) you can use this tool. The available functions are listed below:

  1. Search for persons:

    > java -cp build/ de.dhbw.contactdb.Main --personensuche="Ila"
    Mila Milan
    
  2. Search for places:

    > java -cp build/ de.dhbw.contactdb.Main --ortssuche="Markt" 
    Supermarkt Großmarkt
    
  3. Find contact persons:

    > java -cp build/ de.dhbw.contactdb.Main --kontaktpersonen=1
    Aaron, Amelie, Ben, Emil, Emilia, Emily, Felix, Hannah, Hannes, Julius, Leonard, Levi, Louis, Malia, Marlene, Ole, Rosalie, Sophia, Victoria
    
  4. Find visitors:

    > java -cp build/ de.dhbw.contactdb.Main --besucher=1,"2021-05-15T14:16:00"
    Adam, Amelie, Carla, Carlotta, Charlotte, Elli, Emil, Emilia, Emily, Emma, Eva, Fiona, Hannah, Hannes, Jonah, Jonas, Joshua, Konstantin, Lian, Lisa, Luisa, Malia, Mara, Maria, Mattis, Max, Melina, Mia, Mohammed, Noah, Ole, Sophia, Tim, Tom, Toni, Victoria
    

Docs

If you want to understand this code, you can use the UML diagram or the javadoc.

Javadoc

Navigate into the docs directory and open index.html in your preferred browser.

UML

The uml diagram is located in the uml directory. The *.drawio file can be shown or edited with draw.io.