Skip to content

Commit a282759

Browse files
authored
Update README.md
1 parent c776a6c commit a282759

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,45 @@
66

77
# Java-backend-Spring-boot-MySQL-login-logout-Authentication-System
88
| Java backend | Simple authentication system using Spring Security, JWT, MySQL, and authenticate users with the login and logout functionalities.
9+
10+
This is a Spring Boot-based authentication system developed for the Woro-media assignment. It provides user registration, login, role-based access control, and logout functionalities.
11+
12+
# Table of Contents
13+
* Features
14+
Technologies Used
15+
Project Structure
16+
How to Run
17+
Usage
18+
Testing
19+
Database Configuration
20+
Contact
21+
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
29+
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
39+
# 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+
42+
# The main packages are:
43+
44+
com.woromedia.auth.api.controller: Contains the REST API controllers.
45+
com.woromedia.auth.api.entity: Contains JPA entity classes.
46+
com.woromedia.auth.api.payload: Contains payload classes for request and response.
47+
com.woromedia.auth.api.repository: Contains JPA repositories.
48+
com.woromedia.auth.api.security: Contains security-related classes like JWT token provider, custom user details service, and authentication filter.
49+
com.woromedia.auth.api.service: Contains service interfaces and their implementations.
50+
com.woromedia.auth.api.utils: Contains utility classes.

0 commit comments

Comments
 (0)