Skip to content

(Just need to add bcrypt & JWT,)πŸ” Full-stack Login & Signup Form built with React and Node.js. Includes backend integration,form validation, error handling, and secure user feedback flow.

Notifications You must be signed in to change notification settings

OV111/Login_Form_FullStack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

98 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Login Form (React + Node)

A simple login form built using React and JSX, featuring field validation, error messaging, disabled button states, and persistent data storage via localStorage.

Features

  • πŸ›‚ All input fields are validated
  • ❗ Displays error messages under each invalid input
  • πŸ”’ Submit button is disabled until all fields are valid
  • πŸ’Ύ localStorage is used to persist user input even on refresh
  • πŸ“‚ Data is stored in a JSON file for easy access(then will be hashed)
  • πŸ§ͺ Validation Logic
    • Email: Must be a valid email format
    • Password: Minimum 6 characters
    • Fields show errors after blur or invalid submission
    • Form can't be submitted until all fields are valid

Technologies Used

  • React.js
  • Node.js
  • CSS for styling
  • JSON for DB
  • Vite for development server
  • npm for package management

πŸ“‚ File Structure

backend/
β”œβ”€β”€ server.js
|── data
|    β”œβ”€β”€ users.json
src/
|── assets/                     
β”œβ”€β”€ components/            
β”‚   β”œβ”€β”€ LoginForm.jsx
β”‚   β”œβ”€β”€ SignUp.jsx  
β”‚   β”œβ”€β”€ DeleteAccount.jsx
β”‚   β”œβ”€β”€ ValidationMessage.jsx
β”‚   β”œβ”€β”€ SuccesfullLogin.jsx
β”‚   β”œβ”€β”€ SuccesfullSignUp.jsx
β”‚   └── SuccesfullLogout.jsx
β”œβ”€β”€ App.jsx
β”œβ”€β”€ main.jsx
β”œβ”€β”€ index.css
β”œβ”€β”€ index.html
β”œβ”€β”€ vite.config.js
β”œβ”€β”€ package.json
β”œβ”€β”€ package-lock.json
└── README.md

πŸ› οΈ Installation

Login Form Preview Sign Up Form Preview Delete Account Preview

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

About

(Just need to add bcrypt & JWT,)πŸ” Full-stack Login & Signup Form built with React and Node.js. Includes backend integration,form validation, error handling, and secure user feedback flow.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published