blob: 3e7215b27e98ce107925addd48835bcd3654466f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
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`
- `gulp webServerDelivery`
### Development
During the development it is possible to use the following commands :
- `gulp build`
- `gulp webServer`
- Gulp webServer will refresh the browse when a file related to the application is changed
### Constants
It is possible to change some constants (API endpoints)
- `cd $MOON_HOME/moon_gui/static/app/moon.constants.js`
### CORS
The GUI need to connect itself to Keystone and Moon.
Opening CORS into them to the GUI Web Server 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
|