Kyle Aitken COMP 3005 Project (Group 39) 101280013
This application simulates a Health & Fitness Club Management System that provides various functions for members, trainers, and administrative users.
Ensure you have the following installed on your machine:
- Java Development Kit 17 (JDK)
- PostgreSQL (and PgAdmin or any other PostgreSQL GUI)
- Node.js (which includes npm)
- (Optional) React Developer Tools for Chrome/Firefox for debugging React applications
git clone https://github.com/kyleaitken/COMP3005Project.git
The project uses Gradle to manage its dependencies. To install them, simply run:
./gradlew build
This command will download and install all the necessary dependencies defined in build.gradle
.
With the terminal open, navigate from the root directory to:
cd src/main/frontend/client
Then, install the dependencies using npm:
npm install
This command reads the package.json
file and installs all the required npm packages.
- Create a PostgreSQL database.
- Update the url, user, and password variables in the
3005Project/src/main/resources/application.properties
file with your PostgreSQL credentials. - Create the relations in your database by executing the DDL queries in the
3005Project/SQL/ddl.sql
file. - Add the trigger functions by executing the scripts in the
3005Project/SQL/triggerFunctions.sql
file. - Add data to the database by executing the DML queries in the
3005Project/SQL/dml.sql
file.
To compile and run the backend part of the project, navigate back to the root directory of the project and run:
./gradlew bootRun
This command compiles the Java code and starts the Spring Boot application.
With the backend running, open a new terminal window or tab and navigate to the frontend directory at 3005Project/src/main/frontend/client. Then, start the frontend application with:
npm run start
This command starts the React application, usually available at http://localhost:3000
by default.