Installation
Easy peasy
1) Downloading
Download the source code from our GitHub repository for dropwizard and the same for the spring project, you would need Jumahuaca Core Project too. We would upload to a maven repository when the first release of the project is complete but for now, you should clone from GitHub.
You could use your favorite IDE and import both projects as maven projects but if you are using Eclipse you could import the Eclipse project directly.
2) Installing
You have the code so now we need to build the artifact, in this case, it would be a jar file, running maven task:
mvn clean install
First in jumahuaca-core and then in each example project.
You could run this task however you want, command line, specifying de goal: clean install in "eclipse maven run as".
You will notice all tests are run and the result is shown as output or in the console.
3) Liquibase
Before you need to install PostgreSQL and create an empty database called jumahuaca_uva_loan. Please visit the "The applications -> Database" page for details.
For the dropwizard project you have to run a java process that is not the application but the Liquibase process to configure the database. You should run the main method inside the main class DropwizardUvaApiApplication with the arguments: db migrate config.yml
In the spring project the liquibase update would run whenever the application run, you don't have to do anything more than have the empty database.
4) Running
And that's it, you should run the main method in the class DropwizardUvaApiApplication.java to run the Dropwizard application with the arguments server config.yml.
For the Spring Application you should run the main method in the class SpringUvaApiApplication.java
You could check the api is up by doing a get to any endpoint, for example localhost:8080/api/v1/exchange/all (for complete API documentation, please visit the API page)
Last updated
Was this helpful?