Skip to content

Onboarding Document

Shefali Emmanuel edited this page Nov 6, 2019 · 16 revisions

Welcome to the Topsoil team!!

Step 1: Clone Topsoil from GitHub

  1. Navigate to the Topsoil GitHub Repo
  2. copy and paste this into your terminal:

git clone https://github.com/CIRDLES/Topsoil.git

Step 2: Utilizing Topsoil

There are a few different ways to display and utilize the topsoil repository on your computer. If you’re using an integrated development environment (IDE), the project import process will depend on which one you have.

Topsoil uses Gradle as a build tool. The main class of Topsoil is located in Topsoil/app/src/main/java/org/cirdles/topsoil/app/ and is called MainWindow.java.

  1. Terminal (classic)

    • Once you have the source code, navigate to the root directory in a terminal and execute the command ./gradlew build. This will import the required resources and build Topsoil.

    • After that, you can create a JAR file by running ./gradlew jarWithDependencies.

      Here is what my terminal looks like:Screen Shot 2019-11-06 at 3 46 04 PM

    • Download your Java JDK (this might require account creation, but it is complimentary)

    • The resulting JAR file will be in Topsoil/app/build/libs with the name topsoil-[version].jar. (Typically the largest one)Screen Shot 2019-11-06 at 2 46 51 PM

    • Open jar file by double-clicking or typing “ java -jar topsoil-[version].jar” into the command line

  2. NetBeans

    • Download Netbeans (Version 8.2)

      • What is it?
        • “NetBeans IDE lets you quickly and easily develop Java desktop, mobile, and web applications, as well as HTML5 applications with HTML, JavaScript, and CSS. The IDE also provides a great set of tools for PHP and C/C++ developers. It is free and open-source and has a large community of users and developers around the world.”
    • Instructions on Installing NetBeans

    • Download & Install Gradle Plugin (Make sure it is for Netbeans 8.2)

      • What is it?
        • open-source build automation tool that is designed to be flexible enough to build almost any type of software (gradle.org)
      • Why do we use it?
        • Gradle models its builds as Directed Acyclic Graphs (DAGs) of tasks (units of work). What this means is that a build essentially configures a set of tasks and wires them together — based on their dependencies — to create that DAG. Once the task graph has been created, Gradle determines which tasks need to be run in which order and then proceeds to execute them. (gradle.org)
      • How to build gradle projects from terminal? (generic commands)
        • gradle To see what version we have installed
        • gradle clean build To build out your gradle project
    • Download & Install SceneBuilder Plugin

    • Scene Builder Installation Tutorial

    • Open the Topsoil Project

      • File > Open > Topsoil (go to the location where Topsoil is cloned on your computer
      • This is what your screen should look like Screen Shot 2019-11-06 at 2 57 12 PM