README.md 3.92 KB
Newer Older
wuruchi's avatar
wuruchi committed
## Autosubmit GUI
### Overview: 
Autosubmit GUI is a front-end software developed using [ReactJS](https://reactjs.org/docs/getting-started.html) as the main framework, and JavaScript in general.
wuruchi's avatar
wuruchi committed
This front-end software consumes most of the information it needs from [Autosubmit API](https://earth.bsc.es/gitlab/wuruchi/autosubmitreact/-/wikis/Autosubmit-API), an API that retrieves information from an internal file system that 
wuruchi's avatar
wuruchi committed
results from the execution of [Autosubmit](https://earth.bsc.es/gitlab/es/autosubmit) to execute experiments on a High Performance Computing environment.
wuruchi's avatar
wuruchi committed

wuruchi's avatar
wuruchi committed
These two systems, the API and the GUI, are tightly coupled. However, it is possible to adapt the API calls to other sources of information you might prefer, and for 
that purpose we provide with response examples (more details in the installation section) that can help the developer understand how the information is used in 
the components of the GUI.
wuruchi's avatar
wuruchi committed
Autosubmit GUI uses [FancyTree](https://github.com/mar10/fancytree/) and [vis.js](https://visjs.org/), two popular and very useful libraries, to show the experiment 
wuruchi's avatar
wuruchi committed
information in a graphical and comprehensive way. The GUI implements creative ways to use these libraries to dynamically display information without losing performance. 
Some of the expermients in our environment can include more than `10000` items, and showing this information in a web format without significant loss of performance is 
wuruchi's avatar
wuruchi committed
by itself an achievement. 
wuruchi's avatar
wuruchi committed
### General Knowledge Requirements:
wuruchi's avatar
wuruchi committed
* npm
wuruchi's avatar
wuruchi committed
* Javascript: asynchronous functions, promises, event handling, etc.
wuruchi's avatar
wuruchi committed
* Bootstrap 4 and CSS
wuruchi's avatar
wuruchi committed
* DOM manipulation
* JSON
* ReactJS
wuruchi's avatar
wuruchi committed

### Installation
The main development framework is **npm**, we are currently using version `6.9.0`. You can find the main **npm** dependencies in the file: [package.json](package.json).
Refer to: [npm documentation](https://docs.npmjs.com/) for more information about installation and first steps on this platform.

Make sure to have npm installed in your local environment.

Execute:

`git clone https://earth.bsc.es/gitlab/wuruchi/autosubmitreact/`

As default, the GUI will request data from the `Autosubmit API`, which is inacessible from outside the Barcelona Supercomputing Center internal network. 
So, we should open the file:

`/autosubmitreact/src/components/context/vars.js`

And change the line:

`export const NOAPI = false;`

to: 

`export const NOAPI = true;`

This will effectively set the API calls to be redirected towards an internal data samples folder `/autosubmitreact/src/components/context/data/` implemented for testing purposes.

wuruchi's avatar
wuruchi committed
After that, you will be able to run (since all required modules are already included in the `node_modules` folder):
wuruchi's avatar
wuruchi committed

`npm start`

wuruchi's avatar
wuruchi committed
Then, the GUI should open in your default browser, and the information displayed should correspond to that of the data samples folder.
wuruchi's avatar
wuruchi committed

### Testing

The testing suite has been developed using [JEST](https://jestjs.io/en/).

To execute it, go to your main folder (`/autosubmitreact/`) and execute:

`npm test`

Almost all tests can be found at `/autosubmitreact/src/components/experiment/tests/`.

wuruchi's avatar
wuruchi committed
### User Guide

A user guide has been developed and published at [https://autosubmit.readthedocs.io/en/latest/autosubmit-gui.html](https://autosubmit.readthedocs.io/en/latest/autosubmit-gui.html). 
Although a little outdated, we are constantly working on updating it considering the latest features.

### Contributing

wuruchi's avatar
wuruchi committed
Currently, the development of this software is under the `Autosubmit team` that belongs to the `Earth Science Department` of the `Barcelona Supercomputing Center`. 
wuruchi's avatar
wuruchi committed

You can open issues in this repository using the `Email a new issue to this project` function, since user creation is currently restricted to only `BSC` members. 
Most issues have been centralized in the [Autosubmit repository](https://earth.bsc.es/gitlab/es/autosubmit/-/issues), and you can check them there.

wuruchi's avatar
wuruchi committed
You are free (and encouraged) to clone this software and modify it to fit your needs.
wuruchi's avatar
wuruchi committed

wuruchi's avatar
wuruchi committed

wuruchi's avatar
wuruchi committed