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
+13-39Lines changed: 13 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,81 +85,55 @@ First of all, generate personal access token with this url : https://github.com/
85
85
- Then click on "Generate Token"
86
86
- In case of errors, please check [here](#Common Maven errors)
87
87
88
-
# Before Running Locally On IDE
89
-
90
-
> 0. If you don't want to replace your `~/m2/settings.xml` file, use following command to build the project (go to the root folder of the application): `mvn -gs template-settings.xml clean install -U`
91
-
> 1. If you have `~/m2/settings.xml` file in your computer, skip the step without reading the after section.
92
-
If you aren't using the `~/.m2/settings.xml` file to actively, you can be back up it before creating
93
-
the new `settings.xml` file, if you want. If you are using actively, after the perform step 3 you can
94
-
manually merge the `settings.xml` file in the project with the `~/.m2/settings.xml` file and skip step 2 and 4.
95
-
> 2. While inside the project directory in the terminal; that is, when you are in the `~/afet-yonetim-sistemi/ays-be`
96
-
directory, run the command `cp template-settings.xml settings.xml`.
97
-
> 3. In the settings.xml file within the project, replace the `{YOUR_GITHUB_USERNAME}` placeholder with your GitHub
98
-
username and replace `{YOUR_PERSONAL_GITHUB_ACCESS_TOKEN}` with the access token value you created on GitHub as
99
-
described in the instructions under the `'Instructions Before Building The Project'` section.
100
-
> 4. If the `.m2` directory has not been created before, you can use the command `mkdir ~/.m2` and then run the
101
-
command `cp settings.xml ~/.m2/settings.xml` for copy the `settings.xml` file located in the project
102
-
to the `~/.m2` directory.
88
+
# Setup Project
103
89
104
-
#### Don't forget to enable Lombok pre-processing in your IDE!
105
-
106
-
## Building The Project With Tests
90
+
Run the following command to set up the project:
107
91
92
+
```shell
93
+
sh setup/setup.sh
108
94
```
109
-
./mvnw clean install
110
-
```
111
-
112
-
## Building The Project Without Tests
113
95
114
-
```
115
-
./mvnw clean install -DskipTests
116
-
```
96
+
#### Don't forget to enable Lombok pre-processing in your IDE!
117
97
118
98
## Running as Docker MySQL container
119
99
120
100
Before running the project, you need to run the following command to start the MySQL container:
121
101
122
-
```
102
+
```shell
123
103
docker compose up -d --build database
124
104
```
125
105
126
106
If you want to recreate the MySQL container, you can run the following command:
127
107
128
-
```
108
+
```shell
129
109
docker compose up --force-recreate -d --build database
130
110
```
131
111
132
112
If you want to stop the MySQL container, you can run the following command:
133
113
134
-
```
114
+
```shell
135
115
docker compose down -v database
136
116
```
137
117
138
118
---
139
119
140
120
# Running As Docker Container
141
121
142
-
> 1. While inside the project directory in the terminal; that is, when you are in the `~/afet-yonetim-sistemi/ays-be`
143
-
directory, run the command `cp template-settings.xml settings.xml`.
144
-
> 2. In the `settings.xml` file within the project, replace the `{YOUR_GITHUB_USERNAME}` placeholder with your GitHub
145
-
username and replace `{YOUR_PERSONAL_GITHUB_ACCESS_TOKEN}` with the access token value you created on GitHub as
146
-
described in the instructions under the `'Instructions Before Building The Project'` section.
147
-
148
122
Before running the project, you need to run the following command to start the project container:
149
123
150
-
```
124
+
```shell
151
125
docker compose up -d --build
152
126
```
153
127
154
128
If you want to recreate the project container, you can run the following command:
155
129
156
-
```
130
+
```shell
157
131
docker compose up --force-recreate -d --build
158
132
```
159
133
160
134
If you want to stop the project container, you can run the following command:
161
135
162
-
```
136
+
```shell
163
137
docker compose down -v
164
138
```
165
139
@@ -212,7 +186,7 @@ ZipException opening "bcprov-jdk18on-1.78.jar": zip END header not found
212
186
213
187
#### Solution:
214
188
215
-
> Make sure to remove bouncy castle from your .m2 folder then run `mvn clean install` again to download the packages.
189
+
> Make sure to remove bouncy castle from your .m2 folder then run `./mvnw clean install` again to download the packages.
216
190
217
191
### 3. Can't download the package from the private repo:
218
192
@@ -228,7 +202,7 @@ or updates are forced -> [Help 1]
228
202
229
203
#### Solution:
230
204
231
-
> Use the following command to build the project: `mvn clean install -U -DskipTests`
205
+
> Use the following command to build the project: `./mvnw clean install -U -DskipTests`
0 commit comments