Skip to content
This repository has been archived by the owner on Feb 8, 2025. It is now read-only.
/ BlumBat Public archive

Latest commit

 

History

History
50 lines (35 loc) · 1.41 KB

README-en.md

File metadata and controls

50 lines (35 loc) · 1.41 KB

BlumBat

Real estate application for landlords. Student projet for IUT Paul Sabatier (SAÉ S3.A.01).

GitHub mirror | README original en Français

Prerequisites

Installation and exécution

Configuring the database

  1. Create a MySQL database
  2. Execute the script in sql/create_tables.sql to create the required tables
  3. Created a .env file at the project root, and add the following database credentials:
DATABASE_URL = "jdbc:mysql://[host]:[port]/[database name]"
DATABASE_USER = "[username]"
DATABASE_PASSWORD = "[password]"

Compiling and executing

$ mvn clean compile # To compile a .jar
$ mvn exec:java # To run the application

$ mvn clean compile exec:java # To do both in one command

Run unit tests

$ mvn clean test

Project structure

  • sql: Migrations and other SQL scripts
  • src/controller: Application controllers
  • src/dao: Data Access Objects for model classes
  • src/db: Database connection
  • src/model: Abstract Java classes for database tables
  • src/view : Application windows, panels and pop-ups