-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
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.
- Install Docker.
Windows users: you'll want to setup Docker in “Linux containers” mode. - 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
- Go to Portainer at localhost:9000. An electron app is also available on the AUR.
- Set a username and password. Don't forget this, you'll need it to login in the future.
- In Portainer, go to
App Templates
on the sidebar. - In the list of app templates, click Mongo. A config dialog should pop up at the top of the page.
- Give the container a name if you'd like, and click
Show advanced options
. UnderPort mapping
, copy the port fromcontainer
tohost
. - Leave everything else as-is unless you know what you're doing, and deploy the container.
- Repeat 6-8 for Redis.
- Install gradle, and in a terminal, run:
gradle wrapper
- 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
- Download the JAR ☕
- If you want, make an
application.properties
file in the same folder as the JAR. See application.properties below. - Run the JAR. You can use the command:
java -jar smoothie-web.jar # add --debug flag to debug