This WebApp consists of three parts:
- Main Application — contains views and business logic.
- Service Registry — have register, unregister, and cleanup method to maintain different services.
- Mircoservices — it contains Employee Service, using which we will display data on the Home page application
-
Clone a copy of the repo:
git clone https://github.com/princeseth/nodejs-microservices.git
-
Change to the tasklist-app directory:
cd tasklist-app
-
Install dev dependencies:
npm install
-
Change to the service-registry directory:
cd service-registry
-
Install dev dependencies:
npm install
-
Change to the employee-service directory:
cd employee-service
-
Install dev dependencies:
npm install
- Start the tasklist-app project using
node start
this application will listens at port `3085. - Start the service-registry project using
node start
this registry has get, register, unregister method. - Start the employee-service project using
node start
this service has all the data related to employee viz. images, work, names.
Now, vist at * http://localhost:3085/ *