Project:Sandbox

= Get the code = The source code for FOCS is stored at

= Database Setup = You will need to set up two databases on your machine. One for focs and one for atc. Follow the steps below.
 * Open a terminal and enter: sudo apt-get install mysql-server Install the packages.
 * A configuration screen will appear which requests for a "root" password. Type in a password of your choice.
 * You will return to the terminal. Enter: sudo apt-get install phpmyadmin.  Install the packages.
 * Another configuration screen will appear. Select apache2 as web server.
 * Next you need to add the configuration of phpmyadmin to the apache2 configuration. Open the apache2 configuration file with: sudo nano /etc/apache2/apache2.conf
 * Scroll down to where other configurations are included. Add the following line: Include /etc/phpmyadmin/apache.conf Save and exit.
 * Restart the apache2 web server by entering: sudo /etc/init.d/apache2 restart
 * You can now access phpmyadmin in your web browser through http://localhost/phpmyadmin/, and create the databases through there. Otherwise continue reading.


 * Enter: mysql -u root -p, in the terminal, and then enter your mysql password.
 * Create the databases with: create database focs; create database atc;
 * Enter exit, and your done!

= FOCS Configurations =

Database configurations
       
 * Create config-custom.xml (if you haven't already created it) in .../focs/dist
 * Add the following in the xml file, to configure your focs and atc databases:

        The username and password that you enter should be what you have previously configured when installing mysql.

Routing proposals
To activate the B2B routing proposal service on your installation of FOCS you will need a key file. Ask around for it or see CC0000002968_500.p12 for how to create it.

You should then follow the steps below.       <set name="system"> <property name="modules"> : 		 se.flygp.focs.server.core.module.flightplan.b2b.B2BModule  : 	    For more information regarding the B2B service, see here.
 * Place the CC0000002968_500.p12 file in .../focs/dist
 * Create config-custom-server.xml (if you haven't already created it) in .../focs/dist
 * Add the following in the xml file:
 * Make sure the B2B module is enabled in config-custom-server.xml:

= Run configurations =

Client
The client is started with the GuiApp class, in the focs-client project.
 * === Main ===
 * Project: focs-client
 * Main class: se.flygp.focs.client.gui.GuiApp


 * === Arguments ===
 * VM arguments: -Xmx1G
 * Working directory/Other: ${workspace_loc:focs/dist}

Server
The server is started with the ServerApp class, in the focs-server project.
 * === Main ===
 * Project: focs-server
 * Main class: se.flygp.focs.server.ServerApp


 * === Arguments ===
 * VM arguments: -Xmx3G -Denvironment.devel=true
 * Working directory/Other: ${workspace_loc:focs/dist}

Database updater

 * === FOCS database ===
 * ==== Main ====
 * Project: focs-server
 * Main class: se.flygp.focs.server.tool.UpgradeDbApp


 * ==== Arguments ====
 * Working directory/Other: ${workspace_loc:focs/dist}


 * === ATC database ===
 * ==== Main ====
 * Project: focs-server
 * Main class: se.flygp.atc.server.tool.UpgradeDbApp


 * ==== Arguments ====
 * Working directory/Other: ${workspace_loc:focs/dist}