Skip to content

Installing Clotho 3.0 Jetty 9

jkozol edited this page Feb 2, 2017 · 1 revision

Clotho 3 consists of front and back ends. The source tree contains a prebuilt front end, so you may skip the steps marked as optional. This installation is geared towards running Clotho 3 from the command line.

0. Install dependencies

1. Get the source code

git clone https://github.com/CIDARLAB/clotho3.git

Clones the repository into a new directory clotho3 in your current directory.

2. Run the server

If MongoDB is not already running, start it with mongod.

If you are working on a Linux operating system, and run into an error while starting MongoDB : "dbpath (/data/db) does not exist, terminating", try the following commands

sudo mkdir -p /data/db/

sudo chown `id -u` /data/db

sudo mongod

3. Build the back end

mvn package -Dmaven.test.skip.exec

4. Run Clotho 3

mvn -Dexec.args="-Dloglevel=OFF -classpath %classpath org.clothocad.core.util.ClothoTestEnvironment -clientdirectory clotho3-web/dist" \
    -Dexec.executable=java \
    -Dexec.classpathScope=test \
    process-classes \
    org.codehaus.mojo:exec-maven-plugin:1.2.1:exec

Provides a small universe of items for exploring or running tests against.

-clientdirectory may be set to either clotho3-web/dist or clotho3-web/app:

  • dist -- prebuilt front end. Use this if you do not want to build the front end yourself.
  • app -- front end source code. Build before using.

See also: Configuration

5. Open your browser

Now open https://localhost:8443 in a web browser. Congrats! You have a working development environment for Clotho 3.0!

Clone this wiki locally