Git Product home page Git Product logo

eea.eunis's Introduction

EUNIS web application

How to build:

You can build the application and run the unit tests with an embedded database. You don't need a database installation. Just do:

mvn -Denv=unittest test

If you encounter problems, take a look at unittest.properties. This configuration is the one that is used by the Continuous Integration.

If you want your own database, then install MySQL, create a database and a user with full rights to the database. Then you copy unittest.properties to local.properties and modify the values. You should run the unit tests on the database to ensure your database connection is properly configured.

If you are using newer versions of MySQL, check that the version of mysql-connector jar (in /pom.xml) matches.

If you are using Tomcat > 7, add in CATALINA_OPTS:

-Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true

For correct URI handling, the <Connector> in server.xml needs the following setting: URIEncoding="UTF-8".

To create the tables do:

cd web
mvn -Dmaven.test.skip=true liquibase:update

How to install:

Create images/intros in $app.home (as defined in local.properties).

When you build on the same machine as you use to install in production, you don't want to run the unit tests as it will empty your database. So always remember to tell it to skip tables.

mvn -Dmaven.test.skip=true install
cd web; mvn -Dmaven.test.skip=true liquibase:update
cp web/target/eunis.war /var/lib/tomcat6/eunis_apps/ROOT.war

To do a full clean build, as done in Continous Integration, run:

mvn -Denv=unittest clean cobertura:cobertura javadoc:javadoc findbugs:findbugs pmd:pmd pmd:cpd checkstyle:checkstyle

eea.eunis's People

Contributors

sorenroug avatar melish avatar miahi avatar infodebitgit avatar enrikokasper avatar jaaktripledev avatar heinlja avatar demarant avatar nick-nachos avatar charliefd avatar danielc-edw avatar ichim-david 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.