Make Angular App Available To Local Network
- #Angular
- #Network
Make Angular App Available To Local Network
Run your Angular Development Server on your Local Network to access and try out your application from any network device.
To get started, make note of your local IP Address on your network to use for later.
Edit package.json to make things easier:
Filename: package.json
...
"scripts": {
"ng": "ng",
"start": "ng serve",
"start-local": "ng serve --host 0.0.0.0",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
},
...
Now run the command npm run start-local
Access the angular development web server from any device on your network by accessing http://<IP-Address>:4200 in any web browser.
0 Comments
Sign in to join the conversation.