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
<pre>Start the application on local host - npm start</pre>
70
+
Start the application on local host:
190
71
191
-
<pre>The application will run on http://localhost:4200</pre>
72
+
<pre>npm start</pre>
192
73
193
-
-React JS
74
+
Navigate to:
194
75
195
-
-Axios - API Calls
76
+
http://localhost:4200
196
77
78
+
197
79
<b>Backend -</b>
198
80
Install JDK 11.0.11
81
+
Install docker -v 20.10.7
82
+
Install docker-compose -v 1.8.0
199
83
200
-
<pre>Open ./spring-backend on any IDE (IntelliJ/Eclipse etc.) and run the application.</pre>
84
+
Navigate to spring-backend subfolder:
85
+
86
+
<pre>cd spring-backend</pre>
87
+
88
+
Run the project with:
89
+
90
+
<pre>docker-compose up --build</pre>
201
91
202
-
<pre>The backend will run on http://localhost:8080 </pre>
203
92
204
-
-Spring Boot
93
+
The project has the following endpoints:
94
+
95
+
http://localhost:8080/swagger-ui/index.html
96
+
97
+
IMPORTANT: to explore api enter url: /v3/api-docs
98
+
99
+
NOTE: Testing API
100
+
101
+
-/signup (create client-user) or /register (create business-user)
102
+
103
+
-/authenticate (returns JWT authentication token)
104
+
105
+
-use JWT token in order to authorize access to secured endpoints (click the lock icon or use the Authorize button on the upper right corner - then paste JWT Token )
106
+
107
+
NOTE: /notification endpoint will return an internal server error if you don't specify spring.mail credentials first.
108
+
109
+
<pre>The backend will run on http://localhost:8080 </pre>
205
110
206
-
-Basic Authentication and JWT implemented both using Spring Security.
111
+
<b>Spring Mail</b>
207
112
208
-
-Spring Data JPA + MySQL
113
+
Make sure to specify a valid spring.mail.username and spring.mail.password in the application.properties file in order to be able to send an Email confirmation for updating user entries.
209
114
210
-
<b>Database -</b>
115
+
IMPORTANT: if you decide not to specify mail credentials, you will get javax.mail.AuthenticationFailedException. The rest of the application should work normally despite this exception.
211
116
212
-
Make sure to specify spring.datasource.username and spring.datasource.password in the application.properties file.
213
-
The databse will be created with the start of the application. No set up required.
0 commit comments