Skip to content

RIHANA - Radiological Image and History Acquisition for Neurocomputing Analysis - Backend

License

Notifications You must be signed in to change notification settings

miferreiro/rihana-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RIHANA - Radiological Image and History Acquisition for Neurocomputing Analysis - Backend

Running the application

The application has been configured to be easily run locally, by just invoking a Maven command.

To do so, Maven will download (if it is not already) a clean WildFly distribution to the target folder, configure it, start it and deploy the application on it.

This makes very easy and straightforward to manually test the application.

Configure a local MySQL

To execute the application you need a MySQL server running in localhost and using the default port (3306).

In this server you have to create a database named rihana accessible for the rihana user using the rihanapass password.

This can be configured executing the follow SQL sentences in your MySQL:

CREATE DATABASE rihana;
GRANT ALL ON rihana.* TO rihana@localhost IDENTIFIED BY 'rihanapass';
FLUSH PRIVILEGES;

Of course, this configuration can be changed in the POM file.

Building the application

The application can be built with the following Maven command:

mvn clean install

This will build the application launching the tests on a Wildfly 10.1.0 server.

Starting the application

The application can be started with the following Maven command:

mvn package wildfly:start wildfly:deploy-only -P wildfly-mysql-run

This will start a WildFly 10.1.0.

Redeploying the application

Once it is running, the application can be re-deployed with the following Maven command:

mvn package wildfly:deploy-only -P wildfly-mysql-run

Stopping the application

The application can be stopped with the following Maven command:

mvn wildfly:shutdown

REST API documentation

The REST API is documented using the Swagger framework. It can be browsed using the Swagger UI application to access the following URL:

http://localhost:8080/rihana-backend/rest/api/swagger.json

About

RIHANA - Radiological Image and History Acquisition for Neurocomputing Analysis - Backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages