A fullstack login/signup application built with Spring Boot (backend) and React (frontend) using Spring Security and JWT authentication.
spring-react-auth-app/
βββ backend/
β βββ src/
β β βββ main/
β β β βββ java/com/yourapp/
β β β β βββ controller/
β β β β βββ model/
β β β β βββ repository/
β β β β βββ security/
β β β β βββ service/
β β β βββ resources/
β β β βββ application.properties
β β β βββ static/
β β βββ test/
β βββ pom.xml
β
βββ frontend/
β βββ public/
β βββ src/
β β βββ components/
β β βββ pages/
β β βββ services/
β β βββ App.js
β βββ package.json
β βββ vite.config.js
β
βββ README.md
- User registration and login
- JWT-based authentication
- Protected routes on frontend
- Password encryption with BCrypt
- Backend: Java, Spring Boot, Spring Security, PostgreSQL/MySQL (or H2)
- Frontend: React, React Router, Fetch, CSS
- Authentication: JWT, BCrypt
- Build Tools: Maven (backend), Node/npm (frontend)
bash git clone https://github.com/your-username/spring-react-auth-app.git cd spring-react-auth-app
- Start Backend
cd backend mvn clean install --> no need to explicitely install maven if using intellij mvn spring-boot:run
The backend runs on http://localhost:8080.
- call the backend Api on frontend and use it accordingly
##Usage
-
Navigate to http://localhost:3000
-
Register a new user
-
Login to access protectedΒ pages
Created by Vedant Bhombe.
- GitHub: vedant05bhombe-netizen
- Email: vedant05bhomber@gmail.com
- Spring Boot & Spring Security documentation
- React documentation