A simple project demonstrating how Spring Framework can be used in conjunction with Thymeleaf to implement a simple HelpDesk web application.
- read, search, create, edit and delete technical support articles
- create and manage support tickets with a simple messaging system
The steps below will get you up and running with a local development environment. We assume you have the following installed:
- JDK 1.8
- PostgreSQL
- Maven
- Lombok Plugin for your IDE
Create database
CREATE DATABASE "helpdesk"
Set environment variable
export 'JDBC_DATABASE_URL=jdbc:postgresql://localhost/helpdesk?user=[username]&password=[password]'
Package com.pg.helpdesk.init
contains several database initializer beans that populate the database with example data.
You can use the ExampleDataLoaderInitializer
class to configure custom DataLoaders.
Example user credentials that you can use to log in can be found in the UserInitializer
class.
Run application
mvn spring-boot:run
Key | Description |
---|---|
JDBC_DATABASE_URL | database connection information |