Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.89 KB

README.md

File metadata and controls

41 lines (32 loc) · 1.89 KB

Getting Started

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

  • Installing mongodb, and access it as Url mongodb://localhost:27017/, and you can create and name whatever you want ,then you should put them to application.properties
  • You can change the MongoDB configuration in file application.properties
    spring.data.mongodb.host=
    spring.data.mongodb.database=
    
  • Update GitHub token in file github.token
  • Run mvn clean install to build project
  • Run mvn test to test all tests

Access Swagger URL: http://{your-host}/swagger-ui/index.html

Install Lombok for Eclipse IDE

  • Download lombok here https://projectlombok.org/download
  • run command "java -jar lombok.jar" then you can access file “eclipse.ini“ in eclipse folder where you install → there is a text like this: -javaagent:C:\Users\tvtphuc\eclipse\jee-2024-032\eclipse\lombok.jar → it means you are successful
  • Start eclipse
  • Import the project then in the eclipse , you should run the command “mvn clean install“
  • After that you go to class MarketplaceServiceApplication → right click to main method → click run as → choose Java Application
  • Then you can send a request in postman
  • If you want to run single test in class UserServiceImplTest. You can right-click to method testFindAllUser and right click → select Run as → choose JUnit Test