ons jabbes
This repository contains a user authentication system with features including user registration, login, and email verification. It provides a basic template that can be used and extended for various web applications.
- User Signup: Allows users to create an account with email and password. ✉️
- User Login: Enables users to log in with their credentials. 🔑
- Email Verification: Sends a verification email to users upon registration to confirm their email address. 📧
- Password Management: Users can reset their passwords if forgotten. 🔄
- Backend: Node.js, Express.js
- Frontend: React , ejs
- Database: MongoDB
- Email Service:
- Node.js (v14 or higher)
- npm or yarn
- MongoDB (or your database setup)
- An email service provider account (e.g., SendGrid, Mailgun)
-
Clone the repository:
git clone https://github.com/yourusername/authentication-system.git cd authentication-system
-
Install backend dependencies:
npm install
-
Install frontend dependencies:
npm install
-
Set up environment variables:
Create a .env file in both the backend and frontend directories and add the required variables.
Backend (.env):
PORT=5000 MONGO_URI=your_mongodb_uri JWT_SECRET=your_jwt_secret EMAIL_SERVICE_API_KEY=your_email_service_api_key
Frontend (.env):
REACT_APP_API_URL=http://localhost:5000
-
Start the backend server:
npm start
Navigate to the signup page of the application, enter your details, and submit the form. You will receive a verification email to confirm your registration. 📝
After verifying your email, navigate to the login page, enter your credentials, and access the application. 🔒
Check your email for a verification link sent upon registration. Click the link to activate your account. 🔗
In case you forgot your password a verification link is sent to your email so you can change it .
###poassword reset
- Fork the repository.
- Create a new branch: git checkout -b feature/your-feature.
- Commit your changes: git commit -am 'Add new feature'.
- Push to the branch: git push origin feature/your-feature.
- Create a new Pull Request.



