Skip to content

Getting started with Portofino 5

Alessio Stalla edited this page Oct 31, 2019 · 25 revisions

Objectives

At the end of this tutorial, we'll have a running Portofino application connected to a SQL database.

This tutorial is targeted at beginners. Experienced Java developers who use an IDE and Maven might still want to follow along with this, to quickly get a glimpse of what Portofino is about, but their development setup will be quite different. We'll cover that in other tutorials.

Prerequisite: Java installation

First, let's ensure that Java 8+ (JRE or JDK) is installed on our system. We can check it by typing at a command prompt:

java -version

We should get back something along the lines of:

java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)

Note that Java 8 is the minimum supported release, but it's quite old, and the long-term supported Java 11 is recommended.

Install Portofino

First, let's download it from SourceForge.

We should have downloaded a file named portofino-5.1.0.zip. Note that 5.1.0 is the latest version at the time of writing, but a new version might be available now. Let's simply extract the archive to a place of our choice. It's better to avoid paths with spaces in them, if possible.

This is the layout of the extracted package:

portofino-5.x.y/apache-tomcat-9.z/webapps/ROOT.war

It's a basic Apache Tomcat installation with the Portofino all-in-one webapp pre-installed and JDBC drivers for major open-source database systems available.

Optional: install additional JDBC drivers

In order to connect to certain commercial database systems such as Oracle, we need to add the corresponding JDBC driver to the lib directory of Tomcat. Each database vendor has their own drivers and licenses. If you have trouble connecting to a certain database or find that it's not supported by Portofino, please write to the mailing list.

Start Tomcat

Let's locate the file portofino-5.x.y/apache-tomcat-9.z/bin/startup.sh (on Linux/OSX; on Windows, it's startup.bat) and execute it by double-clicking on it.

Tomcat should start writing to the logfile portofino-5.x.y/apache-tomcat-9.z/logs/catalina.out. We can make sure that Tomcat has started by looking for a line containing ... INFO [main] org.apache.catalina.startup.Catalina.start Server startup in ...; however, it should take just a few seconds to start up.

Next steps

We'll still writing this document. In the meantime, you can continue over at the classic download page from "Point your browser" onwards. The steps are similar, even if the UI has changed.

Clone this wiki locally