Skip to content

baditaflorin/node-visitor-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

node-visitor-check

A simple Express.js application to determine whether a user has visited the website before using cookies and localStorage.

Prerequisites

  • Node.js
  • npm (comes with Node.js)

Installation

  1. Clone this repository:
git clone https://github.com/baditaflorin/node-visitor-check/
  1. Navigate to the repository folder and install dependencies:
cd node-visitor-check/
npm install
  1. Run the server:
npm start

Open your browser and navigate to http:https://localhost:3030.

Features

Uses cookies to track visitors. Also employs localStorage as a fallback to cookies. Responds with "New Visitor" if the user hasn't visited before. Responds with "Already Visited" if the user has visited before.

License

This software is copyrighted by Florin Badita.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published