Welcome to Amir's Mighty Mechanic Shop. This is a JavaFX application that connects to a local PostgreSQL database.
This program intends to perform the following functions:
- Connect to a local mechanic shop PSQL database
- Add customers
- Add customers' cars
- Add mechanics
- Open service requests for cars
- Close service requests
- List specific records
This program has been built and tested on Ubuntu 18.04 including PostgreSQL 10, OpenJDK 11, JavaFX Linux SDK 11.
- You need PostgreSQL.
- You need the Java Runtime Environment (JRE)
sudo apt install default-jreVerify your installation withjava -version - You need JavaFX
sudo -u postgres createuser --interactive- Input your login name. Answer 'y' on superuser prompt
createdb mechanic_shopcdto the data folderpsql mechanic_shop < ../sql/create.sqljava --module-path %PATH_TO_JAVAFX_FOLDER% --add-modules javafx.controls,javafx.fxml -jar %PATH_TO_JavaFXMechanicShop.jarMake sure you includelib/when pathing to the JavaFX folder.
- Obtains a physical connection to the database
DriverManager.getConnection(url, username, password). - Sends a query to the connection whenever you click on one of the menu options, e.g,
SELECT MAX(id) FROM customer. - Parses the query returned values and displays them on the GUI.





