Skip to content

Instantly share code, notes, and snippets.

@katmutua
Created June 23, 2016 11:44
Show Gist options
  • Select an option

  • Save katmutua/d6294b770f3007cf67ff859c140ae36f to your computer and use it in GitHub Desktop.

Select an option

Save katmutua/d6294b770f3007cf67ff859c140ae36f to your computer and use it in GitHub Desktop.
Run Angular Docs Locally
Download the zipped version of the Angular.JS Build, which contains both the builds of AngularJS, as well as documentation and other extras.
Unzip the Angular.JS docs folder.
Download and install Node.JS.
Using Mac Terminal, install the npm package http-server globally so that it can be run from the command line.
$ sudo npm install -g http-server
cd to the Angular.JS docs folder and start-up http-server.
$ http-server -a 127.0.0.1
Starting up http-server, serving ./ on: http://127.0.0.1:8080
Use your browser to view the docs @ http://127.0.0.1:8080/index-production.html
Note: Using the default served by http-server (http://0.0.0.0:8080) and http://0.0.0.0:8080/index-production.html in Chrome will end up in a google search. Alternatively you can create a bookmark and Chrome will stop searching for it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment