Skip to content

vedant05bhombe-netizen/spring-react-auth-app-fullstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Spring-React Authentication App

A fullstack login/signup application built with Spring Boot (backend) and React (frontend) using Spring Security and JWT authentication.


πŸ“ Project Structure

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

Features

  • User registration and login
  • JWT-based authentication
  • Protected routes on frontend
  • Password encryption with BCrypt

Tech Stack

  • 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)

Setup Instructions

1. Clone the repository

bash git clone https://github.com/your-username/spring-react-auth-app.git cd spring-react-auth-app

  1. 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.

  1. call the backend Api on frontend and use it accordingly

##Usage

  1. Navigate to http://localhost:3000

  2. Register a new user

  3. Login to access protectedΒ pages

Contact

Created by Vedant Bhombe.


Acknowledgements

  • Spring Boot & Spring Security documentation
  • React documentation

About

spring react auth app using react and spring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published