Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carevicm/node.js_express.js-secret_page
https://github.com/carevicm/node.js_express.js-secret_page
body-parser ejs expressjs html5 javascript middleware morgan nodejs
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/carevicm/node.js_express.js-secret_page
- Owner: carevicm
- Created: 2023-09-27T05:06:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-05T23:57:00.000Z (about 1 year ago)
- Last Synced: 2024-11-05T11:31:20.670Z (about 2 months ago)
- Topics: body-parser, ejs, expressjs, html5, javascript, middleware, morgan, nodejs
- Language: HTML
- Homepage: https://secret-page.onrender.com/
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js_Express.js-Secret_Page
Secrets - A Simple Web App
Welcome to Secrets! This application is designed to showcase a password protection mechanism.
Once the user enters the correct password, they are granted access to a list of fun, quirky secrets.Features:
Password protection using Express middleware.
Display of secret tips upon successful authentication.Tech Stack:
HTML: For designing the static pages.
Express.js: The backbone of our server. We use this to route and serve our application.
Body-Parser: An essential tool for decoding POST data sent by the user.
Morgan: A logging middleware to keep an eye on incoming requests.
Node.js: The runtime environment where our server lives.
Setting up the Project:
Clone the repository:
Install the required dependencies:
npm install
Run the server:
nodemon index.js
Open a web browser and navigate to:
http://localhost:3000/
Enter the password ILoveProgramming to access the secrets!
Notes:
This is a simple project for educational purposes. It showcases basic authentication mechanisms using Express middleware.
Always ensure that sensitive data like passwords are stored securely in a real-world application. This demo uses plaintext