Giter Club home page Giter Club logo

fidelizacion-backend's Introduction

fpuna-backend-template

Requeriemientos

  • Java
  • Maven
  • Wildfly
  • PostgreSQL

Configuración

Se debe configurar el Datasource en Wildfly para el acceso a la base de datos (Instrucciones) y modificar el archivo src/main/resources/META-INF/persistance.xml de modo a utilizar el Datasource creado:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
   <persistence-unit name="fidelizacion">
      <!-- If you are running in a production environment, add a managed 
         data source, this example data source is just for development and testing! -->
      <!-- The datasource is deployed as ${ds-deployment-location}, you
         can find it in the source at postgres_local-ds.xml -->
      <jta-data-source>[JDI_NAME_DEL_DATASOURCE]</jta-data-source>
      <class>com.backend.fidelizacion.model.Persona</class>
      <properties>
         <property name="hibernate.id.new_generator_mappings" value="true"/>
         <property name="hibernate.show_sql" value="true" />
         <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
         
      </properties>
   </persistence-unit>
</persistence>

Luego se debe crear el archivo env-variables.sh:

cp env-variables.sh.example env-variables.sh

y rellenar con la variables de entorno.

Uso

Para ejecutar las migraciones:

./migrate.sh

Para construit y desplegar el proyecto:

./deploy.sh

fidelizacion-backend's People

Contributors

kukiamarilla avatar nereaortiz avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.