yangui updates
[dlux.git] / README.md
index cd4d9721660961b94437f8b3a2b044060ffffca0..9c39851ba649ad90a3f37fe17ef2c9e491c1c7c4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,40 +1,48 @@
 # OpenDaylight DLUX \r
 \r
 OpenDaylight DLUX is a Javascript-based stateless user interface that communicates with the service backend to provide a consistent and user-friendly interface to interact with OpenDaylight projects and base controller.\r
\r
+\r
 \r
 ## Quick Start\r
 \r
-Install Node.js then:\r
+1. Install Node.js. Use link http://nodejs.org/download/\r
+2. Go to directory dlux-web from command line\r
 \r
-```sh\r
-$ sudo npm -g install grunt-cli karma bower\r
-$ npm install\r
-$ bower install\r
-$ grunt watch\r
-```\r
+   $ cd dlux-web\r
+\r
+3. Execute following steps from shell prompt\r
 \r
-Finally, open `file:///path/to/ng-boilerplate/build/index.html` in your browser.\r
+   $ sudo npm -g install grunt-cli karma bower\r
+   $ npm install\r
+   $ bower install\r
 \r
-If you want to run the dlux on local node server, use command\r
 \r
-$ grunt live\r
+4. To run the dlux on local node server, use command\r
 \r
-It will start server at http://localhost:9000/. It expects your controller to be running at localhost:8080. We can change it in app.js.\r
+   $ grunt live\r
 \r
-To generate OSGi bundle for controller, run\r
+It will start server at http://localhost:9000/. It expects your controller to be running at localhost:8181.\r
+\r
+You can change the base url of controller in file dlux-web/config/development.json\r
+\r
+\r
+5. To generate OSGi bundle for controller, run\r
 \r
  $ mvn clean install\r
 \r
-It will generate dlux-web-0.1.0-SNAPSHOT.jar under target/.\r
-Copy this jar bundle to plugins directory inside your controller distribution. Then, you can access Dlux UI at http://localhost:8080/dlux/index.html.\r
+It will generate dlux-web-0.1.0-SNAPSHOT.jar under dlux-web/target/.\r
+This assumes that dlux is deployed on same node where md-sal is present. If md-sal is present at different OSGi container,\r
+then you should update the base url in file dlux-web/config/production.json\r
+\r
+6. Copy this jar bundle to plugins directory inside your controller distribution. Then, you can access Dlux UI at http://<<Controller IP>>:8181/dlux/index.html.\r
+\r
 \r
 ## Overall Directory Structure\r
 \r
 At a high level, the structure looks roughly like this:\r
 \r
 ```\r
-dlux/\r
+dlux-web/\r
   |- grunt-tasks/\r
   |- karma/\r
   |- src/\r
@@ -142,12 +150,12 @@ And everything will be done automatically!
 \r
 To make the build even faster, tasks are placed into two categories: build and\r
 compile. The build tasks (like those we've been discussing) are the minimal\r
-tasks required to run your app during development.\r
+tasks required to run your app during development. Build use developement.json for configuration.\r
 \r
 Compile tasks, however, get your app ready for production. The compile tasks\r
 include concatenation, minification, compression, etc. These tasks take a little\r
 bit longer to run and are not at all necessary for development so are not called\r
-automatically during build or watch.\r
+automatically during build or watch. Compile use production.json as configuration file.\r
 \r
 To initiate a full compile, you simply run the default task:\r
 \r