Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 4 Current »

Instalación de un servidor HapiFhir v5 en Ubuntu 18.04

Instrucciones

  1. Instalación de dependencias

    1. Instalación OpenJDK 11

    2. Instalación Maven

    3. Instalación de Tomcat 9

    4. Instalación de GIT

  2. Clonar repositorio publico de hapifhir

    git clone https://github.com/hapifhir/hapi-fhir-jpaserver-starter
    cd hapi-fhir-jpaserver-starter
    git checkout v5.0.0
  3. (Opcional)Por defecto tiene la configuración de Derby con Base de datos si se desea cambiar a MYSQL

    1. Editar el archivo src/main/resources/hapi.properties y modificar los siguientes parámetros:

      datasource.driver=com.mysql.jdbc.Driver
      datasource.url=jdbc:mysql://localhost:3306/hapi_r4
      hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
      datasource.username=fhir
      datasource.password=fhir
    2. Crear la base de datos y el usuario en consola de MYSQL

      CREATE DATABASE hapi_fhir_r4;
      grant all on hapi_r4.* to fhir@'localhost' identified by 'fhir';
      flush privileges;
  4. ingresar a la carpeta del proyecto y compilar proyecto

    mvn install -DskipTests
  5. Puesta en marcha

    1. Jetty

      mvn -Djetty.port=8080 jetty:run
    2. Tomcat

      sudo service tomcat start
      cp target/hapi-fhir-jpaserver.war /opt/tomcat/webapps/.
  6.  Acceder http://localhost:8080/hapi-fhir-jpaserver/

  • No labels