Installation
Prerequisite
Java Runtime 1.8+
Installing
- Download the release zip file via the github release page.
- Unzip it. The folder structure should look like this:
|-- Release
|-- config
|-- poli.properties
|-- db
|-- poli.db
|-- jdbc-drivers
|-- poli-x.y.z.jar
|-- start.sh
|-- start.bat
|...
- Modify the poli.properties file.Poli.db is the SQLite database used by the application. It is pre-loaded with database schema and ready to use.
Use absolute path to point to the poli.db file.
For example:
# Windows
spring.datasource.url= jdbc:sqlite:c:/poli-release/db/poli.db
or
# Linux
spring.datasource.url= jdbc:sqlite:/home/user/poli-release/db/poli.db
- Add JDBC drivers.
There are no JDBC drivers included except the JDBC driver for SQLite. You need to download the JDBC jar files based on the database you'd like to connect to and put those JDBC jar files under /jdbc-drivers.
For example:
|-- jdbc-drivers
|-- postgresql-42.2.5.jar
|-- mysql-connector-java-8.0.12.jar
|-- mssql-jdbc-7.2.0.jre8.jar
|...
- Run the start script to start the server.
- # Windows
- start.bat
- # Linux
- ./start.sh
- Open http://localhost:6688/poli/login in chrome.
- Done. Welcome to Poli!