P_015 - DigiMedArchive
Prerequisites
- JDK version >= 8
- MySQL
Steps to run
-
Open a MySQL console in the terminal
mysql -u <your-username> -p <your-password>
-
Create a database called "medarchive"
CREATE DATABASE medarchive;
-
Open the
application.properties
file located insrc/main/resources
and add your MySQL username and password like this:spring.datasource.username=<your-username-here> spring.datasource.password=<your-password-here>
-
Either run the main function in
src/main/java/dev/ayushm/med/Application.java
in eclipse OR,-
Open a terminal in the root of the project
-
Run the following commands to build a jar file and then run it
-
on Windows
.\mvnw clean install java -jar target\medarchive.jar
-
on Linux and Mac
./mvnw clean install java -jar target/medarchive.jar
-
-
-
Open
localhost:8080
in your browser.