Coder Social home page Coder Social logo

fenix-webapp's Introduction

Fenix Webapp IST

Table of Contents

#About

Fenix Webapp is the aggregator project for IST's Fenix Installation.

#Setup Environment

  1. Create a configuration file using mvn bennu:generate-configuration. This generates src/main/resources/configuration.properties, which should be customized to best suit your needs.
  2. Copy src/main/resources/fenix-framework.properties.sample to src/main/resources/fenix-framework.properties.
  3. Modify both files accordingly
  4. export JAVA_OPTS="-server -Xms256m -Xmx1024m -XX:PermSize=384m"
  5. export MAVEN_OPTS="$JAVA_OPTS"

#Compiling

There are three ways to compile the Fenix Webapp.

Embedded

This is the approach best suited for development. Instead of packaging the Webapp, it is possible to run Tomcat directly in Maven.

To run the webapp, using tomcat7-maven-plugin, add the following to your MAVEN_OPTS environment property:

-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

And then, run the webapp using:

mvn clean tomcat7:run

or

mvn tomcat7:run

To run the embedded Tomcat with the Debugger, add the followwing to your MAVEN_OPTS environment property:

-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

You can change the suspend=n to suspend=y if debugging the startup process is required.

Exploded War

This approach is well suited for development, as it does not create a War file.

mvn clean prepare-package war:exploded

This creates the exploded Webapp in target/fenix-webapp-1.0.0-SNAPSHOT.

To run the Webapp in a standalone Tomcat installation, simply create a Symlink using:

ln -s $(pwd)/target/fenix-webapp-1.0.0-SNAPSHOT <tomcat>/webapps/fenix

War File

This approach is the one used for production environments. Simply run:

mvn clean package

The generated War file is located in target/fenix-webapp-1.0.0-SNAPSHOT.war

Create Jar for Fenix Scripts

To create the Jar required for Fenix Scripts (Which contains the necessary Base classes and configuration files), simply run:

mvn clean test -Pjar

This creates deploy/fenix-webapp-1.0.0-SNAPSHOT.jar

Create Manual SQL Updates

Schema updates are now automatically handled. However, if you find yourself in need of meddling with the schema update process, and need to know what the Framework is doing, you can run:

mvn clean test -PSQLUpdateGenerator

Which will create the file etc/database_operations/updates.sql

fenix-webapp's People

Contributors

luis-cruz avatar pedrosan7os avatar jcarvalho avatar sergiofbsilva avatar ricardorcr avatar nurv avatar pedrorijo91 avatar mbborgez avatar

Watchers

 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.