A simple authentication system in Express.js using middleware and password verification.
- Uses middleware for password authentication.
- Displays index.html for login input.
- If the correct password (
ILoveProgramming
) is entered, redirects to secret.html. - If incorrect, redirects back to the login page.
- Node.js
- Express.js
- Body-Parser
- HTML (for frontend)
- Clone the repository:
git clone https://github.com/Anshuman-02/Secrets-Project.git
- Navigate to the project folder:
cd Secrets-Project
- Install dependencies:
npm install
- Run the script:
node solution.js
- Open http://localhost:3000 in your browser and test authentication.
#NodeJS #ExpressJS #Authentication #Middleware #WebDevelopment #JavaScript #Security #CodingProject