README.md 1.14 KB
Newer Older
Raphaël Flores's avatar
Raphaël Flores committed
1
2
# GnpIS Plant Data Search

Raphaël Flores's avatar
Raphaël Flores committed
3
4
5
6
GnpIS Plant Data Search *aka* legacy Unified Interface.

## How to contribute

7
8
9
10
Look at the [contribution guide](CONTRIBUTING.md).

## Install development environment

11
12
13
14
15
16
17
18
19
20
21
### Install node and npm
install nvm

go to :
https://github.com/creationix/nvm

```sh
nvm install 10.13.0
nvm use v10.13.0
```

Raphaël Flores's avatar
Raphaël Flores committed
22
### Install Angular CLI
23

24
25
```sh
npm install -g @angular/cli@7.0.6
26
```
27

28
### Install JS dependencies
29

30
31
```sh
cd frontend
32
33
34
35
36
npm install
```

## Run frontend development server

Raphaël Flores's avatar
Raphaël Flores committed
37
38
The frontend requests are redirected to the production server API of GnpIS core 
(https://urgi.versailles.inra.fr/gnpis-core-srv/swagger-ui.html) via the 
39
Angular proxy.
40
41
42
43
44
45

You can run the development server with the following command:

```sh
cd frontend
ng serve
46
47
48
49
```

## GitLab CI

50
51
52
53
54
When creating merge requests on the ForgeMIA GitLab, the GitLab CI will 
automatically run the tests of the project (no need to do anything).

If you want to run the GitLab CI locally, you have to follow this steps:

55
56
1. [Install gitlab-runner](https://docs.gitlab.com/runner/install/)
2. Run the following command (with the correct GnpIS security token):
57

58
59
60
```sh
gitlab-runner exec docker test 
```