Skip to content
/ JWT- Public

This project uses JwService, JwtAuthentication and makes registration and authentication. Uses Spring Boot, React and MySql

Notifications You must be signed in to change notification settings

thejaxen/JWT-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

🔐 JWT-Auth

Empower your applications with unmatched security solutions.
A secure, production-ready authentication module for Spring Boot + React apps.

Last Commit Top Language Language Count


🧩 Built With

  • Java
  • Spring Boot
  • MySQL
  • React
  • YAML
  • XML

📌 Features

  • 🔐 JWT-based Authentication & Authorization
  • ✅ Secure registration & login endpoints
  • 📁 Role-based access control (Admin/User)
  • ⚙️ Configurable via application.yml
  • 🧪 Unit & integration tests with JUnit + MockMvc
  • 🚀 Ready for CI/CD and containerization

📂 Project Structure

jwt-auth/
├── backend/
│   ├── src/main/java/com/example/jwt/
│   └── src/main/resources/application.yml
├── frontend/
│   ├── src/
│   └── public/
└── README.md

🚀 Getting Started

🛠 Prerequisites

  • Java 17+
  • Node.js & npm
  • MySQL
  • Maven

⚙️ Backend Setup

cd backend
mvn clean install
mvn spring-boot:run

💻 Frontend Setup

cd frontend
npm install
npm start

Make sure your backend runs at http://localhost:8080 and frontend at http://localhost:3000.


🧪 Testing

mvn test

Includes:

  • Controller tests (MockMvc)
  • Service layer tests
  • Auth validation tests

🔒 API Endpoints (Sample)

Method Endpoint Description
POST /api/auth/login Login with JWT
POST /api/auth/register Register new user
GET /api/users/me Authenticated info

📜 License

This project is licensed under the MIT License.


🙌 Acknowledgements


📫 Contact

Mert DuyarLinkedInmertysfduyar@gmail.com
GitHub Profile


Star ⭐ the repo if you like it, and feel free to contribute!

About

This project uses JwService, JwtAuthentication and makes registration and authentication. Uses Spring Boot, React and MySql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages