Backend repository for Sniff Project
The Sniff project is designed to provide a convenient and efficient way for pet owners to connect with lost or found pets.
To get started with the application, you will need to have JDK 17+. You can clone the repository and build the application.
- Java JDK version 17+ should be installed in the system.
Check it here https://www.oracle.com/java/technologies/downloads/#java17 or here https://adoptium.net/temurin/releases/
To build the application execute the following commands in the project folder (where pom.xml and mvnw are located):
./mvnw clean package # this will build the project
For the first time it will download and install Maven version configured in the project settings (v3.8.7
)
Next time the cached version will be used without redownloading.
After the build is completed, the folder /target
will be created with a compiled .jar
ready to be launched.
Now you can launch the server at the default port 8080
(if the option --server.port={PORT}
is not provided):
java -jar ./target/*.jar
It may take up to around 15 sec for the server to start. This will start the application and you can access the application by navigating to http://localhost:8080 in your web browser.
The application can be configured using the application.properties
file. This file is located in the src/main/resources
directory. Here, you can configure properties such as the server port, database settings, and logging.
If you want to add new features to the application, you can do so by creating new controllers, services, and repositories. You can also add new dependencies to the pom.xml
file.