You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+66-4
Original file line number
Diff line number
Diff line change
@@ -17,14 +17,76 @@ workflow (a logical succession of algorithms) can be created and edited. This
17
17
workflow will then be saved and installed on the DIVA platform and be run from
18
18
there.
19
19
20
-
## Installation
20
+
## Getting Started
21
21
22
-
Once the repository is cloned, run `yarn`to install the dependencies.
22
+
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
23
23
24
-
To run the platform on development mode, run the command `yarn dev`. It will start the webpack server, build the source files and run the platform in out default browser.
24
+
### Prerequisites
25
25
26
-
To build the final files, run `yarn build` or `yarn dist` for a compressed version. The resulting files will be saved in the `public` folder.
26
+
You will need to install **yarn** to run the interface.
27
27
28
+
### Installing
29
+
30
+
Once yarn is installed, you can install the interface with:
31
+
```
32
+
yarn init
33
+
```
34
+
35
+
If necessary, update `service.xml` so that it contains correct services description.
36
+
37
+
Once all the dependencies are installed, run the following command to run the interface locally:
38
+
39
+
```
40
+
yarn dev
41
+
```
42
+
/!\ Don't forget to precise GET parameters `id` ! On production mode, `id` must match an existing workflow.
43
+
44
+
You should open the running server with url :
45
+
```
46
+
http://localhost:3000?id=6
47
+
```
48
+
49
+
### Maintainance
50
+
51
+
Since git hooks are installed, you will need to have a clean code which match prettier and eslint requirements.
52
+
To prettify your code, run
53
+
```
54
+
yarn prettier:write
55
+
```
56
+
And to check the validity of your code against eslint, run
57
+
```
58
+
yarn eslint
59
+
```
60
+
61
+
If no error is detected, you will be able to commit your changes.
62
+
63
+
## Running the tests
64
+
65
+
Run
66
+
67
+
```
68
+
yarn test
69
+
```
70
+
71
+
## Deployment
72
+
73
+
This command allows you to create a distribution version of the interface. It is the one you can install directly in the `resource` of the Oppidum website.
74
+
75
+
```
76
+
yarn dist
77
+
```
78
+
79
+
The resulting files will be saved in the `public` folder.
80
+
81
+
## Built With
82
+
83
+
*[Vue.js](https://vuejs.org/v2) - The web framework used
0 commit comments