Counter is a project that uses Node.js, worker threads, Express, and PostgreSQL to add a count value to a database. It demonstrates the use of worker threads in a Node.js application to perform CPU-intensive tasks without blocking the main thread.
First, you'll need to have Node.js and PostgreSQL installed on your machine. Once you have those, you can clone the project and install its dependencies:
git clone https://github.com/shanusluke1999/counterNode.git
cd Counter
npm install
or Install the express and pg packages individually:
npm install express
npm install pg
To start the application, run the following command in your terminal:
node index.js