A simple Express.js application to determine whether a user has visited the website before using cookies and localStorage
.
- Node.js
- npm (comes with Node.js)
- Clone this repository:
git clone https://github.com/baditaflorin/node-visitor-check/
- Navigate to the repository folder and install dependencies:
cd node-visitor-check/
npm install
- Run the server:
npm start
Open your browser and navigate to http:https://localhost:3030.
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.
This software is copyrighted by Florin Badita.