Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
product-management-svc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mbdk-tot
product-management-svc
Commits
edf1ef53
Commit
edf1ef53
authored
May 16, 2025
by
Thaswin Muralikaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Dockerfile and update README.md
parent
eec700e2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
21 deletions
+56
-21
Dockerfile
Dockerfile
+9
-0
README.md
README.md
+46
-20
application.properties
src/main/resources/application.properties
+1
-1
No files found.
Dockerfile
0 → 100644
View file @
edf1ef53
FROM
eclipse-temurin:21-jdk-alpine
WORKDIR
/app
COPY
build/libs/*.jar app.jar
EXPOSE
8080
ENTRYPOINT
["java", "-jar", "app.jar"]
README.md
View file @
edf1ef53
...
...
@@ -21,6 +21,32 @@ By the end of this session, students will be able to create a robust Spring Boot
## 2. Project Setup (15 minutes)
### SQL Setup
-
Install MySQL Server by following this url
[
click here
](
https://dev.mysql.com/downloads/installer/
)
.
-
After installing the MySQL server, add the path in System Variables.
-
Copy the path of the MySQL server which will like this
`C:\Program Files\MySQL\MySQL Server 8.0\bin`
for most cases.
-
Open Environment Variables.
-
Click Environment Variables > Under System Variables, find Path > Edit.
-
Add the copied path of MySQL server.
-
Click OK to save.
-
Install SQLyog by following this url
[
click here
](
https://github.com/webyog/sqlyog-community/wiki/Downloads
)
.
### JDK Setup
-
Install Java version 21 by following this link
[
click here
](
https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html
)
.
-
Upon installing JDK 21, open Environment Variables.
-
Under System Variables, click New.
-
Variable Name: JAVA_HOME.
-
Variable Value: C:
\P
rogram Files
\J
ava
\j
dk-21 (or your JDK path)
-
Click OK to save.
-
Add Java to PATH:
-
Find Path under System Variables > Click Edit > New.
-
Add: %JAVA_HOME%
\b
in
-
Click OK to save.
### Spring Boot Setup
-
Create new project in
[
Spring initializr
](
https://start.spring.io/
)
.
-
Choose Java, Gradle, and the spring version 3.44.
-
Create a name for the project.
...
...
@@ -48,27 +74,27 @@ my-product-management-svc
│ ├───java
│ │ └───com
│ │ ├───ctsb
│ │
│
└───my_product_management_svc
│ │
│
├───category
│ │
│
│ ├───Category.java
│ │
│
│ ├───CategoryController.java
│ │
│
│ ├───CategoryDto.java
│ │
│
│ ├───CategoryRepository.java
│ │
│
│ ├───CategoryService.java
│ │
│
├───config
│ │
│
│ ├───OpenApiConfig.java
│ │
│
│ ├───SwaggerConfig.java
│ │
│
└───product
│ │
│
│ ├───Product.java
│ │
│
│ ├───ProductController.java
│ │
│
│ ├───ProductDto.java
│ │
│
│ ├───ProductRepository.java
│ │
│
│ ├───ProductService.java
│ │
│
│ ├───Status.java
│ │
└───example
│ │ └───my_product_management_svc
│ │ ├───category
│ │ │ ├───Category.java
│ │ │ ├───CategoryController.java
│ │ │ ├───CategoryDto.java
│ │ │ ├───CategoryRepository.java
│ │ │ ├───CategoryService.java
│ │ ├───config
│ │ │ ├───OpenApiConfig.java
│ │ │ ├───SwaggerConfig.java
│ │ └───product
│ │ │ ├───Product.java
│ │ │ ├───ProductController.java
│ │ │ ├───ProductDto.java
│ │ │ ├───ProductRepository.java
│ │ │ ├───ProductService.java
│ │ │ ├───Status.java
│ │
│ └───resources
│
├───static
│
└───templates
│
│
└───test
```
...
...
src/main/resources/application.properties
View file @
edf1ef53
spring.application.name
=
my-product-management-svc
spring.datasource.url
=
jdbc:mysql://127.0.0.1:3306/productmngm?useSSL=false&serverTimezone=UTC
spring.datasource.url
=
jdbc:mysql://127.0.0.1:3306/productmngm?useSSL=false&serverTimezone=UTC
&allowPublicKeyRetrieval=true
spring.datasource.username
=
root
spring.datasource.password
=
01234
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment