This project demonstrates how to create a Node.js Express application that can be scaled with the cluster
module and PM2.
Tutorial: Scaling Node.js Applications with Clustering
Before running this application, ensure you have the following prerequisites:
- Node.js installed on your machine.
- Basic knowledge of JavaScript and Node.js.
To set up and run the project, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/betterstack-community/scaling-nodejs.git
-
Move into the project directory:
cd scaling-nodejs
-
Install dependencies:
npm install
-
Start the server:
npm start
-
Open your web browser and navigate to
http://localhost:3000/read-content
to see the response.
The code used in this project and in the linked tutorial are licensed under the Apache License, Version 2.0.