Skip to content

Alvarez-P/nodejs-cluster

Repository files navigation

NodeJS Cluster

Example project with Nodejs Clusters, Cache and Load Balancer.

First Steps

  • Install dependencies

Run app

Common

Set env variables on file .env (Optional)

$ npm run start:dev

Cluster Nodejs Module

Set env variables on file .env (Optional)

$ npm run start:cluster:dev

PM2

Set env variables on file ecosystem.config.js

$ npm run start:prod

Run tests

# Stress test
$ npm run test:stress