A sample project to show some skills with the team at uni
- Java JDK version 11+
- Spring Boot version 3.0.0+
- PostgreSQL version 13
Library name | Description |
---|---|
Spring Boot 3 | Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". v3.0.5 |
Spring Web | Allows you to create endpoint on Web sites and lot more |
Lombok | Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java. |
Maven | Maven is a tool that can now be used for building and managing any Java-based project. |
-
Clone this repository to your computer.
-
Set up the PostgreSQL database:
- Open the PostgreSQL database management tool or terminal.
- Create a new database.
-
Configure the
application.properties
file:- Go to the root directory of the application.
- Find the
application.properties
file located atsrc/main/resources
. - Open the
application.properties
file in a text editor. - Change the values of the following properties to your database credentials:
user=your_username password=your_password
- Save the
application.properties
file.
-
Import the database schema:
- Locate the
create.sql
file in thesrc/main/resources/db
directory. - Use your PostgreSQL database management tool to import the
create.sql
file into the created database. This will set up the necessary schema for the application.
- Locate the
-
Start the Java server:
- Open the terminal and go to the root directory of the application in the command line.
- Run the command
mvn clean install
- Run the command to start the Java application (e.g.,
java -jar WebApp.jar
).
-
Start the React application:
- Open the terminal and go to the
src/main/frontend
directory. - Run
npm install
to install the project dependencies. - Run
npm install chart.js react-chartjs-2
andnpm install randomcolor
to install extensions for charts. - After the installation is complete, run
npm start
to start the React application.
- Open the terminal and go to the
-
Accessing the application:
- The Java server will be available at
http://localhost:8080
. - The React application will be available at
http://localhost:3000
.
- The Java server will be available at