Skip to content

Run piLINCS on your own server

Szymon Chojnacki edited this page Feb 10, 2016 · 6 revisions

In order to run your own piLINCS you need to have current Java installed. Gradle and git are used to ease building sources.

Download sources

If git is installed just type:

git clone https://github.com/sajmmon/Pilincs.git pilincs
cd pilincs

Otherwise, download sources as a zip file directly from GitHub.

Build project

If you have gradle installed, type:

gradle clean build

Otherwise, run scripts gradlew or gradle.bat.

Run application

Application is bundled as a jar file. Run it with java by:

java -jar build/libs/*.jar --spring.jpa.hibernate.ddl-auto=create-drop

You specify that you wish to populate a DB from scratch with jpa.hibernate.ddl-auto set to create-drop. You need to specify this option to run piLINCS with default H2 in-memory database.

In the background Tomcat is started as well as H2 database. Your application is available in: localhost:8080/pilincs