Poseidon is a trading Web application written in Java with the Spring Boot Framework. It renders Web pages server side using Thymeleaf as a template engine.
See the GitHub Project for up-to-date information.
- Java version 1.8
- Spring Boot version 2.0.4
- Thymeleaf
- Bootstrap version .4.3.1
- Create the project skeleton (already done)
2. Create project from Spring Boot Initializr (in IntelliJ):File>New > project>Spring Initializr- Add
librepository intopom.xml - Add folders
- Source root:
src/main/java - View:
src/main/resources - Static:
src/main/resource/static
- Source root:
- Add
- Create a database user named
poseidon - Create a database named
poseidonas configured insrc/main/resources/application.yaml - Run the SQL script to create the tables
src/main/resources/db/schema.sqlin this database. - Run the SQL script to populate the tables of this database:
src/main/resources/db/data.sql
- Create domain classes in the
com.nnk.springboot.domainpackage - Create repository classes in the
com.nnk.springboot.repositoriespackage - Create controller classes in the
com.nnk.springboot.controllerspackage - Create views (Thymeleaf template files) under
src/main/resource/templates/
Create Unit Tests in com.nnk.springboot under the test/java folder
- Create
UserServicein thecom.nnk.springboot.servicespackage to load users from the database - Add a Configuration class in the
com.nnk.springboot.configpackage