Skip to content

Commit 5da57db

Browse files
committed
cleanups
1 parent 6261bd8 commit 5da57db

File tree

2 files changed

+34
-56
lines changed

2 files changed

+34
-56
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

README.md

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
### A Spring Boot Web Application Sample with tons of ready-to-use features. This can be used as starter for bigger projects.
22

3-
#### Variations
3+
### Variations
44
- Simpler version without KeyCloak and multi-modules is on separate project https://github.com/gtiwari333/spring-boot-blog-app
55
- Microservice example that uses Spring Cloud features(discovery, gateway, config server etc) is on separate project https://github.com/gtiwari333/spring-boot-microservice-example-java
66

77
<a href="https://www.buymeacoffee.com/gtiwari333" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/arial-blue.png" alt="Buy Me A Coffee" style="height: 42px !important;width: 180px !important;" height="42px" width="180px"></a>
88

99
### App Architecture:
1010
[![Foo](https://lucid.app/publicSegments/view/8c2fa859-36bd-4559-80c7-12fb30997092/image.png)](https://lucid.app/documents/view/fa076c6e-86d3-412b-a9bc-1996dca86a1e)
11-
#### Included Features/Samples
11+
12+
### Included Features/Samples
1213

1314
MicroService:
1415

@@ -17,8 +18,8 @@ MicroService:
1718
- Spring Cloud Contract (WIP)
1819

1920
Spring MVC:
20-
- Public and internal pages
2121
- MVC with thymeleaf templating
22+
- Public and internal pages
2223
- Live update of thymeleaf templates for local development
2324
- HTML fragments, reusable pagination component using Thymeleaf parameterized fragments
2425
- webjar - bootstrap4 + jquery
@@ -86,8 +87,9 @@ Future: do more stuff
8687
- Signup UI
8788
- vendor neutral security with OIDC
8889
- JfrUnit ( WIP )
89-
-
90+
9091
### Requirements
92+
9193
- JDK 21+
9294
- Lombok configured on IDE
9395
- http://ganeshtiwaridotcomdotnp.blogspot.com/2016/03/configuring-lombok-on-intellij.html
@@ -97,17 +99,21 @@ Future: do more stuff
9799
- Make sure docker is started and running
98100
- Run `$ sudo chmod 666 /var/run/docker.sock` if you get error like this "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (Details: [13] Permission denied)"
99101

102+
# How to Run
103+
104+
## With docker - run all apps with dependencies (eg mysql, email server, keycloak etc):
100105

101-
## Build and create docker image
106+
### Build and create docker image
102107

103108
`sh build-docker-images.sh`
104109

105-
## Run all apps and dependencies using docker-compose
110+
### Run all apps and dependencies using docker-compose
111+
112+
- Run ```docker compose -f docker/docker-compose.yml up``` at root to run all apps and dependencies and open http://localhost:8081 to access main app
106113

107-
- Run ```docker compose -f docker/docker-compose.yml up``` at root to run all apps and dependencies and open localhost:8081 to access main app
108114

109115

110-
## How to Run apps individually
116+
## How to Run apps individually without docker
111117

112118
It contains following applications:
113119

@@ -117,7 +123,7 @@ It contains following applications:
117123
- trend-service (optional)
118124
- content-checker (optional)
119125

120-
# Note you will need to create a database named 'seedapp' in your mysql server
126+
## Note you will need to create a database named 'seedapp' in your mysql server
121127

122128
Option 1 - run with manually started KeyCloak, ActiveMQ and MySQL servers
123129
- Run ```mvn clean install``` at root
@@ -129,10 +135,18 @@ Option 2 - run from IDE
129135
- import into your IDE and compile the full project and run the Application.java on main-app module
130136
- Update run configuration to run maven goal `wro4j:run` Before Launch. It should be after 'Build'
131137

138+
## Once the application starts, open `http://localhost:8081` on your browser.
132139

133-
## Run Tests (use ./mvnw instead of mvn if you want to use maven wrapper)
140+
The default username/passwords are listed on : gt.app.Application.initData, which are:
141+
142+
- system/pass
143+
- user1/pass
144+
- user2/pass
134145

135-
Test uses TestContainers, which requires Docker to be installed locally.
146+
147+
# Run Tests
148+
149+
! Test uses TestContainers, which requires Docker to be installed locally.
136150

137151
##### Running full tests
138152

@@ -146,7 +160,11 @@ Option 2 - run from IDE
146160

147161
`mvn compiler:testCompile resources:testResources failsafe:integration-test`
148162

149-
## Code Quality
163+
### Run Tests Faster by using parallel maven build
164+
`mvn -T 5 clean package`
165+
166+
167+
# Code Quality
150168

151169
##### The `error-prone` runs at compile time.
152170

@@ -176,18 +194,13 @@ Owasp dependency check plugin is configured. Run `mvn dependency-check:check` to
176194
open `dependency-check-report.html` from target to see the report.
177195

178196

179-
## Run Tests Faster by using parallel maven build
180-
`mvn -T 5 clean package`
181-
182-
183-
Once the application starts, open `http://localhost:8081` on your browser. The default username/passwords are listed on : gt.app.Application.initData, which are:
197+
### Dependency/plugin version checker
198+
- `mvn versions:display-dependency-updates`
199+
- `mvn versions:display-plugin-updates`
184200

185-
- system/pass
186-
- user1/pass
187-
- user2/pass
188201

189202

190-
#### Screenshots:
203+
### Screenshots:
191204

192205
#### Public View
193206
![](screenshots/public-page.png)
@@ -209,8 +222,3 @@ Once the application starts, open `http://localhost:8081` on your browser. The
209222

210223
#### New Article
211224
![](screenshots/new-article-page.png)
212-
213-
214-
#### Dependency/plugin version checker
215-
- `mvn versions:display-dependency-updates`
216-
- `mvn versions:display-plugin-updates`

0 commit comments

Comments
 (0)