Run AngularJS, Bootstrap and Angular UI bootstrap documentation locally

It is always better to run the documentation of library locally as you won’t be dependent on internet for any documentation help. Also, navigation is fast due to local hosting.

Recently, I got chance to work with AngularJS in one of my project.
I chose my favorite front-end framework Twitter Bootstrap.
Also, came to know about Angular UI Boostrap – set of bootstrap components in AngularJS.

I googled a lot on “How to run documentation of above libraries locally?”.
I found few but mostly outdated.
Hence, this blog to summarize all in one page.

Run AngularJS documentation locally:

1. Go to https://code.angularjs.org/ and select your version and download the zip version.
Eg: For version 1.3.14, go to https://code.angularjs.org/1.3.14/ and download angular-1.3.14.zip(~9MB)

2. Extract the zip file. Above will be extracted into angular-1.3.14.

3. Through terminal, go to above folder

    cd angular-1.3.14

4. Start the server as:

    python -m SimpleHTTPServer

5. Visit url http://localhost:8000/docs


NOTE: For Bootstrap and Angular UI Boostrap, you need jekyll(http://jekyllrb.com/docs/installation/)
To install:(need to have Ruby, RubyGems installed)

    gem install jekyll

Run Bootstrap documentation locally:

1. Clone the gh-pages branch repo:

    git clone --branch gh-pages git://github.com/twitter/bootstrap.git

2. Go to bootstrap directory

    cd bootstrap

3. Serve using jekyll

    jekyll serve -P 8001

4. Visit url http://localhost:8001/


Run AngularUI Bootstrap documentation locally:

1. Clone the gh-pages branch repo:

    git clone --branch gh-pages git://github.com/angular-ui/bootstrap.git angular-ui-bootstrap

2. Go to angular-ui-bootstrap directory

    cd angular-ui-bootstrap

3. Serve using jekyll

    jekyll serve -P 8002

4. Visit url http://localhost:8002/

And Enjoy!!!!
docs

Advertisements

About budhramgurung

I am a self-motivated experienced Software Engineer with good communication and interpersonal skills and has the ability to work independently, can lead, motivate and influence others and can train and mentor others. Has hands-on experience in RoR since Jan, 2012. I am an open source contributor and holds a Master's Degree in Computer Science and experience working as a Software Engineer since August, 2011.

Posted on March 24, 2015, in AngularJS, javascript, Twitter Bootstrap and tagged , , , , . Bookmark the permalink. 2 Comments.

  1. Thank you, Been looking for this information. How do I finally run it on a regular Tomcat7 or jetty server? Any help appreciated.

  2. Hi, unfortunately, I have not worked in both of the server.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: