I have used Java 17 and intellij idea for this project. So please download and install java 17 and intellij idea first.
- Connect to any MySQL server using xampp or wampp and remeber the port number
- Create a database named "udpassignment" in your localhost and leave as it is.
- Clone this repository in your local machine.
- If you downloaded the zip file, unzip it and right click on udpCodingAssignment folder and open as a project via intellij Idea.
- Go to
src/main/resources
and openapplication.yml
- Find the line:
url: jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/udpassignment?serverTimezone=UTC
and check theDB_PORT:
- If your port matches with 3306 then leave it as it is otherwise replace it with yours.
- Simply find UdpCodingAssignmentApplication and right click on it and run.
- Here in
/src/main/resources
theimport.sql
file contains some data which will automatically be added to your database when you run the application.