Either serve the dist/
folder directly, or use angular 2 CLI to serve the client where it refreshes on code changes.
It depends on ng2-auto-complete
for autocomplete functionality
-
Install angular 2 cli (and its prerequisites)
-
Run
npm install
-
Run
ng serve
-
Observe the frontend at http://localhost:4200
cd dist/
Using python:
python -m SimpleHTTPServer 4200 # python 2
python3 -m http.server 4200 # python 3
Or node:
npm install http-server -g
http-server -p 4200
To make changes to the code, first install nodejs/npm/angcli, then:
npm install
ng serve --port 8080