How to run multiple Web-Applications simultaneously?

The short answer is to use a different port number. For Instance in Angular, the default port number for an application is 4200. If you want to run another application at the same time, you would have to use a different port number. Which brings us to a question-

How to change the port number for an application?

Different frameworks have their own ways to change port numbers. In Angular, one would have to type this command in the terminal in order to change the port number-

ng serve –port port_number

where port_number is the number that you Intend the application to use.

Notice that there are two “dashes” before port

For Example-

If you want the application to use port number 4401, then you would do this-

ng serve –port 4401

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s