-
Notifications
You must be signed in to change notification settings - Fork 151
BuildingAndRunningUAFServerUsingEclipse
If you are used to Eclipse, then this is an easy and quick way to get it up and running.
Make sure that you have installed:
- Java
- git client
- Eclipse
- Tomcat
Recommended way is to fork the repo first: https://github.com/eBay/UAF
After that use git client to clone the forked repo in your local file system. This will get you all projects code.
In Mac my preferred way of cloning the repo is from the terminal window. In Windows, I prefer using the git BASH. Example of clone command:
git clone [email protected]:npesic/UAF.git
Import first "fido-uaf-core" project into Eclipse. Choose: File -> Import -> Maven -> Existing Maven Project
Navigate to the "fido-uaf-core". After that project should appear in the Eclipse Project Explorer.
To build the project: Right click on the project name -> Run As -> Maven Install
If all is good, you should see this in the end of the console log:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.056s
[INFO] Finished at: Mon Mar 28 21:42:58 PDT 2016
[INFO] Final Memory: 14M/247M
[INFO] ------------------------------------------------------------------------
Repeat the same steps this time for the "fidouaf" project.
Right click on "fidouaf" project and select: Run As -> Run On server
If all good you should see this in the console:
INFO: Server startup in 3697 ms
Open the browser and try this URL: http://localhost:8080/fidouaf/v1/history
You should get the empty JSON list as a response:
[]
Here is one more URL for testing in browser: http://localhost:8080/fidouaf/v1/public/regRequest/TestUserNamePathParam
You have now UAF server that is running in your local.