Skip to content
Raymond Li edited this page Feb 16, 2020 · 4 revisions

This tutorial shows uses Docker with Portainer to setup Redis and Mongo, but you can install with any other way.

  1. Install Docker.
    Windows users: you'll want to setup Docker in “Linux containers” mode.
  2. Install Portainer in a terminal:
    docker volume create portainer_data
    docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
  3. Go to Portainer at localhost:9000. An electron app is also available on the AUR.
  4. Set a username and password. Don't forget this, you'll need it to login in the future.
  5. In Portainer, go to App Templates on the sidebar.
  6. In the list of app templates, click Mongo. A config dialog should pop up at the top of the page.
  7. Give the container a name if you'd like, and click Show advanced options. Under Port mapping, copy the port from container to host.
  8. Leave everything else as-is unless you know what you're doing, and deploy the container.
  9. Repeat 6-8 for Redis.

Build from source

  1. Install gradle, and in a terminal, run:
    gradle wrapper
  2. Clone smoothie and run it:
    git clone https://github.com/BayviewComputerClub/smoothie-web.git
    cd smoothie-web
    chmod +x run.sh
    ./run.sh # If debugging use ./run.sh --debug

Use precompiled JAR

  1. Download the JAR ☕
  2. If you want, make an application.properties file in the same folder as the JAR. See application.properties below.
  3. Run the JAR. You can use the command:
    java -jar smoothie-web.jar # add --debug flag to debug

Go to http://localhost:8080/ to use smoothie-web.