README.md 991 Bytes
Newer Older
Emmanuel Raviart's avatar
Emmanuel Raviart committed
1
# DFIH-UI
Emmanuel Raviart's avatar
Emmanuel Raviart committed
2

Emmanuel Raviart's avatar
Emmanuel Raviart committed
3
_User interface for the "Données financières historiques (DFIH)" project_
Emmanuel Raviart's avatar
Emmanuel Raviart committed
4

Emmanuel Raviart's avatar
Emmanuel Raviart committed
5
6
7
8
9
10
11
12
## Install

```bash
git clone https://gitlab.huma-num.fr/eurhisfirm/dfih-ui.git
cd dfih-ui/
```

Edit `src/server-config.js` to change database informations. Then
Emmanuel Raviart's avatar
Emmanuel Raviart committed
13
14

```bash
Emmanuel Raviart's avatar
Emmanuel Raviart committed
15
npm install
Emmanuel Raviart's avatar
Emmanuel Raviart committed
16
17
```

Emmanuel Raviart's avatar
Emmanuel Raviart committed
18
## Retrieve or generate JSON files of issuers, securities, etc
Emmanuel Raviart's avatar
Emmanuel Raviart committed
19
20
21
22
23
24
25
26
27
28

### Either retrieve JSON files from their git repository

```bash
git clone https://gitlab.huma-num.fr/eurhisfirm/dfih-open-data.git data
```

### Or generate JSON files from SQL database

```bash
29
30
31
32
33
node_modules/.bin/babel-node src/scripts/generate_issuers.js
node_modules/.bin/babel-node src/scripts/generate_stock_exchanges.js
node_modules/.bin/babel-node src/scripts/generate_securities.js
node_modules/.bin/babel-node src/scripts/generate_daily_price_lists.js
node_modules/.bin/babel-node src/scripts/generate_persons.js
Emmanuel Raviart's avatar
Emmanuel Raviart committed
34
35
36
37
38
```

## Launch server

In development mode:
Emmanuel Raviart's avatar
Emmanuel Raviart committed
39
40

```bash
Emmanuel Raviart's avatar
Emmanuel Raviart committed
41
npm run dev
Emmanuel Raviart's avatar
Emmanuel Raviart committed
42
```
Emmanuel Raviart's avatar
Emmanuel Raviart committed
43
44
45
46
47
48
49

In production mode:

```bash
npm run build
npm start
```