This project implements a simple website counter using Express.js for the backend and MongoDB for data storage. It allows you to track the number of visitors to your website and store this information in a MongoDB database.
Before you begin, ensure you have the following installed:
- Node.js and npm (Node Package Manager)
- MongoDB
- Clone this repository to your local machine:
git clone https://github.com/Faizanusmani06/Counter.git
- Navigate to the project directory:
cd Website-Counter
- Install dependencies:
npm install
- Ensure MongoDB is running on your local machine or update the MongoDB connection string in
.env
to connect to your MongoDB database instance.
- Start the server:
npm start
- Access the website counter through your browser at
http://localhost:3000
. Each visit to this URL will increment the counter.