Preparing deployment

Getting your first app ready to deployment

Configuring the framework

Remember the webapp/WEB-INF/hi.xml config file?
It's the XML file that configures the behavior of Hi-Framework regarding your application.

<?xml version="1.0" encoding="UTF-8" ?>
<app xmlns="http://hi-framework.org/XML/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://hi-framework.org/XML/1.1.0
      http://hi-framework.org/xml/Schema_1_1_0.xsd">
		
	<web>
	        <!--Redirect to hello/world when accessing the root path: / -->
            <welcome-url>hello/world</welcome-url> 
	</web>

</app>

There is no mandatory configuration to run your Hi app. The configuration file could be as empty as follows:

<?xml version="1.0" encoding="UTF-8" ?>
<app xmlns="http://hi-framework.org/XML/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://hi-framework.org/XML/1.1.0
      http://hi-framework.org/xml/Schema_1_1_0.xsd">
		
		<!--Empty configuration file works just fine-->

</app>

IMPORTANT RULE
The configuration file is not optional. A deployment attempt without the configuration file will result in errors.

Reviewing the files

Our web application is ready for deployment. But we may want to review our files and directories structure.

 |-- webapp
        |-- WEB-INF
            |-- hi.xml
        |-- webroot
            |-- js
                |-- jquery-3.0.0.min.js
        |-- views
            |-- hello
                |-- world.html
                |-- world.js
        |-- index.html
        |-- index.js
 |-- java
        [--] my.controlles
            |-- Hello.java                
Github Repository