From the course: Node.js: Debugging and Performance Tuning

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Managing microservices with PM2

Managing microservices with PM2

From the course: Node.js: Debugging and Performance Tuning

Start my 1-month free trial

Managing microservices with PM2

- [Instructor] Now that we have all the prerequisites and we know how the system is built, let's set up our rock, paper, scissors application and manage its microservices with PM2. Switch over to your editor. I'm gonna open Visual Studio Code. Let's add the exercise files to the project. I'm gonna go up to the file menu and select add folders to workspace. Navigate to wherever you've extracted the exercise files and copy the rock-paper-scissors folder. In my case it's on the desktop. Choose the rock-paper-scissors folder and then click add. There are a number of files and folders over on the left. We'll go through them at a high level then turn on the application. I'm gonna click on the first folder, migrations. This contains two files which are used to set up the databases. Click again to close the folder. Next is servers which contains the three microservices, games, players, and web. We'll look at each in turn. First click on games. This contains one folder, lib, which contains…

Contents