-
Install the system package python3-venv (if not already installed)
$ sudo apt-get install python3-venv
-
Create a Python virtual environment.
$ python3 -m venv env
-
Activate the virtual environment
$ source env/bin/activate
-
Upgrade packaging tools.
(env) $ pip install --upgrade pip setuptools
-
Install python wheel package
(env) $ pip install wheel
-
Install the nodeenv package for python inside the virtual environment
(env) $ pip install nodeenv
-
Use the current virtual environment for nodeenv
(env) $ nodeenv -p
-
Install Angular CLI inside the virtual environment
(env) $ npm install -g @angular/cli
-
Install npm packages required by the client application
(env) $ npm install
-
Serve the angular application
(env) $ ng serve
Now we can navigate to
http://localhost:4200/
in order to view the application on the browser
Happy Hacking :)