docs | ||
src/de/dhbw | ||
uml | ||
.gitignore | ||
create_javadoc.sh | ||
create_zip.sh | ||
Kontaktprojekt_20C_9829423.zip | ||
README.md |
Programmieren 2 – Contact-DB
Compile
-
Compile project:
javac -sourcepath src -d build $(find src -path src/de/dhbw/unit -prune -false -o -name *.java)
-
Copy resources:
mkdir build/de/dhbw/contactdb/db && cp src/de/dhbw/contactdb/db/contacts2021.db build/de/dhbw/contactdb/db/contacts2021.db
Tests
-
Tests by Johannes Unterstein
java -cp build/ de.dhbw.contactdb.ProjectTest.ProjektTester
-
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:
-
Search for persons:
> java -cp build/ de.dhbw.contactdb.Main --personensuche="Ila" Mila Milan
-
Search for places:
> java -cp build/ de.dhbw.contactdb.Main --ortssuche="Markt" Supermarkt Großmarkt
-
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
-
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.