You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-26Lines changed: 34 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
1
### A Spring Boot Web Application Sample with tons of ready-to-use features. This can be used as starter for bigger projects.
2
2
3
-
####Variations
3
+
### Variations
4
4
- Simpler version without KeyCloak and multi-modules is on separate project https://github.com/gtiwari333/spring-boot-blog-app
5
5
- 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
6
6
7
7
<ahref="https://www.buymeacoffee.com/gtiwari333"target="_blank"><imgsrc="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>
- 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)"
99
101
102
+
# How to Run
103
+
104
+
## With docker - run all apps with dependencies (eg mysql, email server, keycloak etc):
100
105
101
-
## Build and create docker image
106
+
###Build and create docker image
102
107
103
108
`sh build-docker-images.sh`
104
109
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
106
113
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
108
114
109
115
110
-
## How to Run apps individually
116
+
## How to Run apps individually without docker
111
117
112
118
It contains following applications:
113
119
@@ -117,7 +123,7 @@ It contains following applications:
117
123
- trend-service (optional)
118
124
- content-checker (optional)
119
125
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
121
127
122
128
Option 1 - run with manually started KeyCloak, ActiveMQ and MySQL servers
123
129
- Run ```mvn clean install``` at root
@@ -129,10 +135,18 @@ Option 2 - run from IDE
129
135
- import into your IDE and compile the full project and run the Application.java on main-app module
130
136
- Update run configuration to run maven goal `wro4j:run` Before Launch. It should be after 'Build'
131
137
138
+
## Once the application starts, open `http://localhost:8081` on your browser.
132
139
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
134
145
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.
### Run Tests Faster by using parallel maven build
164
+
`mvn -T 5 clean package`
165
+
166
+
167
+
# Code Quality
150
168
151
169
##### The `error-prone` runs at compile time.
152
170
@@ -176,18 +194,13 @@ Owasp dependency check plugin is configured. Run `mvn dependency-check:check` to
176
194
open `dependency-check-report.html` from target to see the report.
177
195
178
196
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`
184
200
185
-
- system/pass
186
-
- user1/pass
187
-
- user2/pass
188
201
189
202
190
-
####Screenshots:
203
+
### Screenshots:
191
204
192
205
#### Public View
193
206

@@ -209,8 +222,3 @@ Once the application starts, open `http://localhost:8081` on your browser. The
0 commit comments