README.md 955 Bytes
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
22
23
### Install node and npm
install nvm

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

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

###Install Angular CLI

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

37
38
39
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 
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
1. [Install gitlab-runner](https://docs.gitlab.com/runner/install/)
2. Run the following command (with the correct GnpIS security token):
52

53
54
55
```sh
gitlab-runner exec docker test 
```