Skip to content

This application implements a secure authentication system using React.js for the frontend and Node.js for the backend.

Notifications You must be signed in to change notification settings

subramanyam101/authentication

Repository files navigation

🔐 Authentication System using React.js & Node.js


🖥️ Frontend – Built with React.js

  • Tailwind CSS – For mobile-responsive and modern styling.
  • Zod – Schema-based form validation for cleaner and safer input handling.
  • React Router DOM – Client-side routing for navigating between pages.
  • React Toastify – Display real-time notifications (e.g., login success, registration errors).
  • Axios – For making HTTP requests to the backend API.

🔧 Backend – Node.js (Express.js)

  • JSON Web Token (jsonwebtoken) – Token-based authentication to verify user sessions.
  • Nodemon – Auto-restarts the server during development for efficient coding.
  • Mongoose – interacting with MongoDB.
  • Bcrypt.js – Securely hashes passwords before storing them in the database.
  • CORS – Allows cross-origin requests.

    ⚠️ Avoid using * in production; specify your frontend URL for better security.

  • Dotenv – Loads environment variables from a .env file to keep sensitive data private.

🗃️ Database

  • MongoDB – A NoSQL database to store user data.

⚙️ Environment Setup

Create a .env file in the backend root folder with the following:

MONGO_URI="your_mongo_database_connection_string"
JWT_SECRET="your_secret_key_for_jwt"

About

This application implements a secure authentication system using React.js for the frontend and Node.js for the backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published