Spring based web app for ITIS administration
- Spring
- Spring Core
- Spring MVC
- Spring Data JPA
- Spring Security
- Hibernate
- Freemarker
- PostgreSQL database
- Install tomcat and maven
- Clone the repo
- Copy db.properties-template to db.properties and replace all placeholders with your actual values
- Launch the server:
- using
mvn tomcat7:run-war
- using
webapp-runner
:- run
mvn package
- run
java -jar target/dependency/webapp-runner.jar target/itis-pita.war
in project root. You can also configure webapp runner using command line arguments, runwebapp-runner.jar --help
for help.
- run
- using
All above configurations allow for debugging in IDEA (simply add run configuration and debug as usual).
IDEA can automatically reload the code (with some limitations).
- Run debug configuration
- Make changes
- Press Build project in IDEA
- IDEA will ask if you want to reload classes (this can be configured in IDEA settings)
- Run application using
tomcat7:run-war
- Change resources
- Run
mvn war:war
For each feature, create a separate branch.
After a feature is fully implemented, create a pull request to dev
branch.
The above process is subject to change.