MIMC Version 2.0
Developers: Juan Diaz and Alex Rodriguez
School: FIU
Term: Spring 2019

Directory Structure 
------------------------------------------
Database/schema.sql - sql file for creating the DB tables. Must be run after MYSQL is installed. Refer to Installation Video for instructions.
Website/public/ - Contains all AngularJS (frontend) code of the application
Website/public/api/activities.json - activities file read by the application to populate the DB and create activities. Meant to be maintained by the product owners.
Website/public/css/ - contains custom css files apart from Bootstrap used in the application
Website/public/images/ - contains pictures for the read activity of the application
Website/src/ - Contains all Java (backend) code of the application
Website/pom.xml - Maven file where all the dependencies for the project are kept. 
Website/conf/application.conf - configuration file for connecting to the Database


Installation Instructions
------------------------------------------

Download and Install the Java JDK Development Kit for your OS. 
Self-installer is available for Windows. 
https://www.oracle.com/technetwork/java/javaee/downloads/jdk8-downloads-2133151.html
Run javac from command prompt or terminal to verify that java compiler is installed


Download and Install Apache Maven following the installation instructions.
https://maven.apache.org/download.cgi
https://maven.apache.org/install.html
Run mvn from command prompt or terminal to verify that java compiler is installed


Download and install MySQL. Self Installer is available for Windows.
https://dev.mysql.com/downloads/windows/installer/8.0.html 
We had some issues using the web downloader so we recommend downloading the full version (over 300Mb in size) installation. 
Use the default settings for installation.
You do no need to install the plug ins for Excel, Visual Studio, or Python unless you need/want them. Note that this will create dependencies and additional applications might need to be installed.
The application is expecting a MYSQL database installation that has username “root” and password “admin”, but you may change this my modifying the application.conf file after installation. 
Run the sql script in available in the confluence page to create the database schema in MYSQL. 


Cloning the repo
Install Git https://git-scm.com/
Navigate to the folder where you want the repo.
Clone the remote repository using the following command:
Git clone https://sp-jira.cis.fiu.edu:7443/scm/mimc/mimc-backend.git

Run the application by typing the following in the command prompt: 
“mvn Jooby run” 
Maven will  download install any dependencies needed. 

Refer to the Installation and Maitenance Video for more information. 

