Mark's Computer Build is a JavaFX application designed to manage computer builds. It interacts with a PostgreSQL database to perform CRUD operations (Create, Read, Update, Delete) on computer build records. The application allows users to add, edit, and remove computer builds, and view them in a table format.
- Add New Computer Build: Users can add new computer builds by filling out a form with details such as title, case type, motherboard, CPU, etc.
- Edit Existing Computer Build: Users can edit details of an existing computer build.
- Remove Computer Build: Users can delete computer builds from the database.
- View Computer Builds: A table view displays all the computer builds stored in the database.
Watch this video to see the Computer Build Manager in action:
- Java 11 or higher
- JavaFX 11 or higher
- PostgreSQL 11 or higher
- PostgreSQL JDBC Driver
-
Clone the Repository
git clone https://github.com/Mark-Langston/MarksComputerBuilds.git
-
Set Up the Database
- Create a PostgreSQL database named
MarksComputerBuildsDB
. - Run the provided SQL script to create the necessary tables.
- Create a PostgreSQL database named
-
Configure the Database Connection
-
Update the
DatabaseUtil
class insrc/utils/DatabaseUtil.java
with your PostgreSQL connection details:private static final String URL = "jdbc:postgresql://localhost:5432/MarksComputerBuildsDB"; private static final String USER = "postgres"; private static final String PASSWORD = "your_password_here";
-
-
Build the Project
- Use your preferred IDE (e.g., IntelliJ IDEA, Eclipse) to import the project.
- Build the project to resolve all dependencies.
-
Run the Application
- Run the
MainApp
class to start the application.
- Run the
-
Add a Computer Build
- Click on the "Add" button to open the add dialog.
- Fill in the required fields and click "OK" to save.
-
Edit a Computer Build
- Select a build from the table.
- Click on the "Edit" button to open the edit dialog.
- Modify the details and click "OK" to save the changes.
-
Remove a Computer Build
- Select a build from the table.
- Click on the "Remove" button to delete the build.
Contributions are welcome! If you have suggestions or improvements, please create a pull request or open an issue.
- JavaFX for the graphical user interface.
- PostgreSQL for the database management system.