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
+59-30Lines changed: 59 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -11,40 +11,69 @@ This is a Spring Boot-based authentication system developed for the Woro-media a
11
11
12
12
# Table of Contents
13
13
* Features
14
-
Technologies Used
15
-
Project Structure
16
-
How to Run
17
-
Usage
18
-
Testing
19
-
Database Configuration
20
-
Contact
14
+
*Technologies Used
15
+
*Project Structure
16
+
*How to Run
17
+
*Usage
18
+
*Testing
19
+
*Database Configuration
20
+
*Contact
21
21
22
22
# Features
23
-
User registration with username, email, and password
24
-
User login with username or email and password
25
-
Role-based access control with "ROLE_USER" and "ROLE_ADMIN" roles
26
-
Admin panel accessible only to users with "ROLE_ADMIN" role
27
-
Token-based authentication using JSON Web Tokens (JWT)
28
-
Logout functionality
23
+
*User registration with username, email, and password
24
+
*User login with username or email and password
25
+
*Role-based access control with "ROLE_USER" and "ROLE_ADMIN" roles
26
+
*Admin panel accessible only to users with "ROLE_ADMIN" role
27
+
*Token-based authentication using JSON Web Tokens (JWT)
28
+
*Logout functionality
29
29
30
30
# Technologies Used
31
-
Java 8
32
-
Spring Boot
33
-
Spring Security
34
-
Spring Data JPA
35
-
JWT (JSON Web Tokens)
36
-
MySQL
37
-
Maven
38
-
JUnit and Mockito for testing
31
+
* Java 8
32
+
* Spring Boot
33
+
* Spring Security
34
+
* Spring Data JPA
35
+
* JWT (JSON Web Tokens)
36
+
* MySQL
37
+
* Maven
38
+
* JUnit and Mockito for testing
39
+
39
40
# Project Structure
40
-
The project follows the standard Spring Boot project structure with separate packages for controllers, services, repositories, entities, payloads, and security configuration.
41
41
42
-
# The main packages are:
42
+
* The project follows the standard Spring Boot project structure with separate packages for
43
+
* controllers,
44
+
* services,
45
+
* repositories,
46
+
* entities,
47
+
* payloads, and
48
+
* utils,
49
+
* security configuration.
50
+
51
+
# The main packages are:
52
+
* com.woromedia.auth.api.controller: Contains the REST API controllers.
* Spring Boot Starter Web: This dependency enables the development of web applications using Spring Boot. It provides essential components for building RESTful APIs.
66
+
67
+
* Spring Boot Starter Data JPA: This dependency enables JPA (Java Persistence API) support in the application. It simplifies the interaction with the database.
68
+
69
+
* Spring Boot Starter Security: This dependency provides security support for Spring Boot applications. It allows you to secure your API endpoints and handle authentication and authorization.
70
+
71
+
* Spring Boot Starter Validation: This dependency enables validation support for the request payloads. It allows you to enforce constraints on the incoming request data.
72
+
73
+
* JUnit: This dependency is used for writing unit tests.
74
+
75
+
* Mockito: This dependency is used for mocking objects in unit tests.
76
+
77
+
* JWT (JSON Web Tokens): This dependency provides support for generating and validating JSON Web Tokens for token-based authentication.
43
78
44
-
com.woromedia.auth.api.controller: Contains the REST API controllers.
0 commit comments