- Install Eclipse (https://www.eclipse.org/downloads/). Any version should work
- Install Google Web Toolkit
- Click Help – Install New Software
- In the ‘Work With’ textbox
- Paste: http://storage.googleapis.com/gwt-eclipse-plugin/v3/release
- 'Select All'
- Click 'Next' and 'Install'
- Install PyDev
- Click Help - Install New Software
- In the 'Work With' textbox
- Paste: http://www.pydev.org/updates
- 'PyDev for Eclipse'
- Click 'Next' and 'Install'
- Clone the repository via CLI
- SSH: [email protected]:purduedb/LIMO.git
- HTML: https://github.com/purduedb/LIMO.git
- Right click in Package Explorer -> Import -> Import project in Eclipse -> Import as Local Git -> location of cloned repo -> import as general project
- Right click name of project –> properties –> project facets –> click on “Convert to faceted form” –> Set java version to 8 –> Apply –> OK
- If desired, most recent java version should work
- Build path settings
- Right click name of project, select ‘build path’ –> ‘configure build path’
- In the Libraries tab, click Add Jars –> navigate to the project folder/war/WEB-INF/lib –> shift click and select all the jars in that folder –> Apply
- In the Source tab, Set default output folder to “<name of project>/war/WEB-INF/classes” –> Apply -> OK
- Right click name of project –> GWT –> Settings –> Check Use GWT –> Use default SDK –> OK
- To run the code in local machine
- Right click name of project
- Click "Run as..." -> GWT Development Mode with Jetty –> Select GWTMaps.html –> OK
- You will see a URL for the web app on the right hand side, double click to open it on the browser
- To compile source codes for deployment
- Right click name of project
- Select GWT – Compile
- Compiled files will be located under the war directory
- Push to repo
- Download and install Postman found here https://www.getpostman.com/downloads/
- Optional - install Newman, the Postman CLI. Found here: https://www.npmjs.com/package/newman or by running
npm install -g newman
- Import the Environment and LIMO test configurations found in the
tools
directory
- Optional - install Newman, the Postman CLI. Found here: https://www.npmjs.com/package/newman or by running
- Download and install pip found here https://pip.pypa.io/en/stable/installing/
- Installing with the
--user
command is recommended to avoid permissions based issues - Install yapf via
pip install yapf --user
- Install pylint via
pip install pylint --user
- Installing with the
- Right click on the project directory, select GWT -> Compile -> Compile
- Transfer all files under the ‘war’ directory into ibnkhaldun server (using ftp/scp and your purdue account)
- ssh to the ibnkhaldun server using purdue id, switch to limo-sudo
- $ sudo -u limo-sudo –s
- (password)
- $ cd
- The web app files need to be copied from your ibnkhaldun account to shared limo-sudo account:
/homes/limo-sudo/apache/tomcat/webapps/limo
- $ cd /homes/limo-sudo/apache/tomcat/webapps/limo
- $ scp -r @ibnkhaldun.cs.purdue.edu:/home//somefolder/* .
- (password)