- JDK version >= 8
- MySQL
-
Open a Postgresql console in the terminal
psql -U <your-username>
-
Create a database called "medhistory"
CREATE DATABASE medhistory;
-
Open the
application.propertiesfile located insrc/main/resourcesand 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.javain 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\medhistory.war
-
on Linux and Mac
./mvnw clean install java -jar target/medhistory.war
-
-
-
Open
localhost:8080in your browser.