Skip to content

BuildingAndRunningUAFServerUsingEclipse

Neb edited this page Mar 29, 2016 · 2 revisions

Building and Running UAF Server Using Eclipse

If you are used to Eclipse, then this is an easy and quick way to get it up and running.

Prerequisite

Make sure that you have installed:

Get Code

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

Building "fido-uaf-core"

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] ------------------------------------------------------------------------

Building "fidouaf"

Repeat the same steps this time for the "fidouaf" project.

Run On Server

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

Test in Browser

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

Congrats

You have now UAF server that is running in your local.