A simple Node.js application using Express and Redis to track the number of visitors to the server.
- Node.js
- Redis server running locally or accessible remotely
-
Clone this repository:
git clone <repository-url> cd <repository-directory>
-
Install the required Node.js packages:
npm install
-
Start the server:
node <your-script-name>.js
The application establishes a connection to the Redis server and listens to incoming HTTP requests on the specified port. Every time a user visits the root URL (/
), the visitor count is incremented in Redis and displayed back to the user.