-
-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Frickl contains of two parts: the server side which handles the database, image import and API and the client side part (this repository) which puts a nice web-interface on top of the API.
There are two different options when it comes to running Frickl yourself.
- Use the Docker image.
- Build and run Frickl manually.
Option 1 requires the least amount of configuration and it's the option I would recommend. I actually run the Docker image of Frickl on a Raspberry Pi 4 myself. All you need is a machine that has Docker installed. Most Linux distributions will have this available in their software sources. There are detailed installation instructions available on the Docker website for Linux, Windows and MacOS.
For instructions on how to use the Docker image and making the setup even easier using docker-compose, please check out the /docker
subfolder.
Option 2 is for people who either can't or won't use Docker or who already have MySQL and Tomcat running on a machine anyway. In that case, these instructions will cover everything from setting up the requirements to configuring and building Frickl.
- Download and install JDK (8+) (or OpenJDK), Tomcat (8+), MySQL (5.8+), Ant (1.10.5+) and NPM (6.9.0+)
- Set up a Tomcat user using the official documentation. The user requires at least the
manager-script
role. - Set up a database called
frickl
in MySQL and generate a user with all permissions for this database. You can refer to the official documentation for this. - Make sure the JDK and Ant are added to the PATH.
- Start both MySQL and Tomcat.
- Set up a Tomcat user using the official documentation. The user requires at least the
- Clone both frickl-web and frickl-web-server onto your machine.
- Configure Frickl Server
- Rename
build.template.properties
tobuild.properties
. - Set Tomcat properties using the Tomcat username and password chosen earlier.
- Set MySQL properties using the MySQL username and password chosen earlier.
- Set
base.path
to the directory containing your images.
- Rename
- Configure Frickl
- Create a
.env
file in the root of the frickl-web folder. - Add
VUE_APP_BASE_URL=/frickl/api/
to the file.frickl
should reflect whatever you chose as thedeploy.name
in thebuild.properties
of the previous step.
- Create a
- Build Frickl
- In the root of the frickl-web folder, run
npm i
thennpm run build
. - Copy the
dist
folder intofrickl-web-server/web
so that you getfrickl-web-server/web/dist
.
- In the root of the frickl-web folder, run
- Build Frickl Server
- In the root of the frickl-web-server folder, run
ant deploy
.
- In the root of the frickl-web-server folder, run
- Check your installation by navigating to Frickl on Tomcat. It may be
http://localhost:8080/frickl
, but it'll depend on your configuration. - Success.
Please note, that the import process of your images will take some time. Depending on the size of your collection and the transfer speed of the medium they're stored on, this can take a few hours. The loading indicator at the top of the Frickl website indicates whether the import is still running. This process is only done once. When you add more images to your folder, Frickl will only pick them up when Tomcat is restarted.