Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1016 Bytes

File metadata and controls

35 lines (22 loc) · 1016 Bytes

Medical Appointments

This project is a demo for testing development of a MySQL database based on medical appointments and a Java based TUI (text user interface) for user intercation using the JDBC (Java Database Connector) to connect to the appointments database.

Usage

  1. Clone the repository.

  2. Create the appointments database.

mysql -u USER -p < appointments.sql
  1. (Optional) Add sample information to the database.
mysql -u USER -p < appointments-sample.sql
  1. Create mysql.properties file with your MySQL information. This file should be in the current directory when you run the app. Check mysql-sample.properties to fill it correctly.

  2. Create lib folder and inside it download the MySQL JDBC compatible with your MySQL version.

  3. Compile Java source code in bin folder.

javac -d bin src/jdbc/appointments/*.java
  1. Run Java app.
java -cp bin:lib/mysql-connector-j-9.0.0.jar jdbc.appointments.Main