-
Notifications
You must be signed in to change notification settings - Fork 1
Installation guide
kstanisz edited this page May 9, 2016
·
10 revisions
###Project configuration#
- Download and install Maven: https://maven.apache.org/
- Check if Maven is installed correctly. Type in command line: mvn -version
- Checkout project from repository: https://github.com/MarekM25/PIK
###Build and run project in IntellijIdea#
- In IntellijIDEA navigate to View -> Tool Windows > Maven Project
- Select: Execute Maven Goal
- Build and run application. Type: clean spring-boot:run
- Open the following url in a web browser: http://localhost:8080/DatabaseManager/
###Build and run project in Maven#
- In command line go to the project directory
- Build and run application. Type in command line: mvn clean spring-boot:run
- Open the following url in a web browser: http://localhost:8080/DatabaseManager/
###Build and run as a war packaged application#
- In command line go to the project directory
- Create an executable war file. Type in command line: mvn clean package
- War file is located in /target directory. In command line go to the /target directory.
- Run application from war file. Type in command line: java -jar you_war_file.war e.g. java -jar databasemanager-0.0.1-SNAPSHOT.war
###Database configuration#
- Start database server
- Create database and user
- Enter database configuration in resources/application.properties