RandomUserApiApplication is a Kotlin-based Spring Boot application which facilitates various user-related functionalities. This document outlines the steps required to run the RandomUserApiApplication.kt file within the IntelliJ IDEA environment.
- Java Development Kit (JDK), version 1.8 or higher.
- The latest version of IntelliJ IDEA.
On your local machine, clone the repository by executing the following command in your terminal:
git clone https://github.com/zicula/RandomUserApiApplication.gitLaunch IntelliJ IDEA and select "Open". In the dialog box, navigate to the directory where you cloned the project and open it.
navigate to "Build" -> "Build Project" to build the application.
To run the application, locate the RandomUserApiApplication.kt file within your project structure (src/main/kotlin/com/api/randomuserapi/RandomUserApiApplication.kt). Right-click on the file and select "Run 'RandomUserApiApplicationKt'". The Spring Boot application should now start.
After successfully starting the application, you can access it by opening a web browser and navigating to http://localhost:8089, or another port if you have configured it differently from the default. (edit port at -> src/main/resources/application.properties)
go to http://localhost:8089/v1/users/{seed} {seed} is the unique identifier associated with each user. Replace {seed} with the actual seed value of the user.
example: http://localhost:8089/v1/users/test1