shyamseshadri / angularjs-up-and-running

All the source code for the AngularJS Up & Running Book for O'Reilly
MIT License
464 stars 438 forks source link

easy way to serve the examples #11

Open dmh2000 opened 9 years ago

dmh2000 commented 9 years ago

an easy way to get the examples running (on Linux) is: install node.js

git clone https://github.com/shyamseshadri/angularjs-up-and-running cd angularjs-up-and-running npm init (accept all defaults) npm install --save http-server node node_modules/http-server/bin/http-server connect browser to localhost:8080 example directory is served

flyte commented 9 years ago

An even easier way to get them running on Linux is:

git clone https://github.com/shyamseshadri/angularjs-up-and-running
cd angularjs-up-and-running
python -m SimpleHTTPServer

:)

glixingxian commented 9 years ago

the python server is very useful when testing locally! Node.js server is of course more powerful than the simple Python server. Thank you @flyte and @dmh2000 !