aboutsummaryrefslogtreecommitdiffstats
path: root/moon_gui/README.md
diff options
context:
space:
mode:
authorWuKong <rebirthmonkey@gmail.com>2017-12-23 21:49:35 +0100
committerWuKong <rebirthmonkey@gmail.com>2017-12-23 21:49:58 +0100
commit1100c66ce03a059ebe7ece9734e799b49b3a5a9e (patch)
treea057e7e7511f6675a9327b79e6919f07c5f89f07 /moon_gui/README.md
parent7a4dfdde6314476ae2a1a1c881ff1e3c430f790e (diff)
moonv4 cleanup
Change-Id: Icef927f3236d985ac13ff7376f6ce6314b2b39b0 Signed-off-by: WuKong <rebirthmonkey@gmail.com>
Diffstat (limited to 'moon_gui/README.md')
-rw-r--r--moon_gui/README.md63
1 files changed, 63 insertions, 0 deletions
diff --git a/moon_gui/README.md b/moon_gui/README.md
new file mode 100644
index 00000000..ff6e5a97
--- /dev/null
+++ b/moon_gui/README.md
@@ -0,0 +1,63 @@
+
+GUI for the Moon project
+================================
+
+This directory contains all the code for the Moon project
+It is designed to provide a running GUI of the Moon platform instance.
+
+
+## Usage
+
+### Prerequist
+- `sudo apt-get install nodejs nodejs-legacy`
+- `sudo npm install --global gulp-cli`
+
+
+### Install all packages
+- `cd $MOON_HOME/moon_gui`
+- `sudo npm install`
+
+### Run the GUI
+- `gulp webServerDelivery`
+- Open your web browser
+
+
+## Configuration
+
+### Build the delivery package
+- `gulp delivery`
+### Launch the Web Server
+- `gulp webServerDelivery`
+
+### Development
+
+During the development it is possible to use following commands :
+- `gulp build`
+Launch a Web Server
+- `gulp webServer`
+- Gulp webServer will refresh the browser when a file related to the application changed
+
+
+### Constants
+It is possible to change some constants (API endpoints)
+- $MOON_HOME/moon_gui/static/app/moon.constants.js
+
+
+### CORS
+
+The GUI need to connect itself to Keystone and Moon.
+Opening CORS to the GUI WebServer is required.
+
+In order to modify Keystone :
+
+`cd $pathtoVmSpace/docker/keystone`
+
+Concerned file is run.sh
+
+In order to modify Moon :
+
+`cd $MOON_HOME/moon_interface/interface`
+
+Concerned file is http_server.py
+
+