Load balanced angular 4 web application with redis communication layer.
- NodeJS v4
- Redis
- Install NodeJS and Redis.
- Clone the project with
git clone https://github.com/lorjala/pictionary.git
. - Move to app directory
cd PictionaryApp
. - Install node modules with
npm install
. - Configure environment variables.
- Run the application with
node index.js
.
- PORT: server port
- REDIS_HOST: redis host
- REDIS_PORT: redis port
- Move to client directory
cd client
. - Install node modules with
npm install
. - Install angular-cli globally with
npm install -g @angular/cli
for easy build. - Build the angular application with
ng build
.
- Move to load balancer directory
cd ../../LoadBalancer
. - Configure web servers addresses and ports in the index.js.
- Configure environment variables.
- Launch the load balancer with
node index.js
.
- PORT: load balancer PORT