From 270dc3cfb3b8c19430313392504f4673882c5cac Mon Sep 17 00:00:00 2001 From: Rico Rodriquez Collins Date: Sun, 22 Jun 2014 22:45:24 -0700 Subject: [PATCH] add local-web-server to help with markup via the browser --- .gitignore | 2 ++ README.md | 32 +++++++++++++++++++++++++++++++- package.json | 11 +++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..caacb67 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.DS_Store +node_modules/* diff --git a/README.md b/README.md index 61a781b..2b8093c 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,34 @@ A sample application built with Ionic and AngularJS -More information here: http://coenraets.org \ No newline at end of file +More information here: http://coenraets.org + +## To run a browser locally for development ## + +Included is a package.json, only needed if you wish +to debug part of your app via a browser +(ie: using Dev Tools). + +However, if you only wish to use an emulator or mobile +device for development, the package.json file can +be ignored. + +To install local-web-server +``` +npm install +``` +To run local-web-server +``` +npm start +``` +Then point your browser to +``` +http://localhost:8000 +``` + +You do not need to restart the server for most changes, +just refresh the page. + +More information on how to use local-web-server is +included it the project's README: + https://github.com/75lb/local-web-server diff --git a/package.json b/package.json new file mode 100644 index 0000000..04b78f2 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "directory-angular-ionic", + "version": "1.0.0", + "scripts": { + "start": "ws" + }, + "repository": "https://github.com/ccoenraets/directory-angular-ionic.git", + "dependencies": { + "local-web-server": "~0.5.12" + } +}