-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the Stash wiki!
Here you can find information about how to get started with Stash Backend.
The source code can be downloaded from GitHub. The latest release of the executable application (fat jar) can be also found on GitHub Stash Releases.
- Java 8 or higher
- PostgreSQL server
To start the application run the following command:
java -jar application/stash-1.0-SNAPSHOT-all.jar
. After running the application
we will see that an additional parameter has to be provided describing
our server configuration (the YML
file we have created eariler). Depending on where our configuration (YAML) file is,
we can use the following command:
java -jar application/stash-1.0-SNAPSHOT-all.jar server application/config.yml
.
After the application has succesfully connected to the Postgres server, our application
will be available at localhost:8080
and localhost:8081
.
If you have downloaded the source code, you can either run the application
from your favorite IDE, or you can export the application using Gradle as a fat jar (uber jar)
by running the following command in the root directory of the project:
gradle shadowJar
. If you want to make sure that you get a clean build, you can
run gradle clean
first to delete existing builds.
The exported jar
will be found
in the build/libs
directory.
In order to compile the code you need to set up some configurations in your IDE.
- Download PostgreSQL JDBC Driver from its official site and add it to the project's classpath (in IntelliJ IDEA 2017.2: File > Project structure > Libraries > New project library)
- Enable annotation processing (in IntelliJ IDEA 2017.2: File > Settings > Build, execution, employment > Compiler > Annotation processors > Enable annotation processing)