2.4.2 • Published 6 months ago

@golemio/schema-definitions v2.4.2

Weekly downloads
420
License
MIT
Repository
gitlab
Last release
6 months ago

Data Platform Database Schema Definitions

Database Schema Definitions of the Golemio Data Platform System.

Developed by http://operatorict.cz

Local installation

Prerequisites

  • node.js
  • npm
  • yarn
  • MongoDB
  • PostgreSQL

Instalation

Install all prerequisites

Install all dependencies using command:

yarn install

from the application's root directory.

Compilation of typescript code

To compile typescript code into js one-time

npm run build

or run this, to watch all changes

npm run build-watch

from the application's root directory.

Usage

Published versions

To use the published schemas, in the project folder create file .npmrc with connection to OICT private npm registry and then in your project's package.json set dependency to Golemio Schema Definitions Module using command:

npm install golemio-schema-definitions --save

or

yarn add golemio-schema-definitions --save

Then import module, e.g.

import { CityDistricts } from "golemio-schema-definitions";

Local versions (pre-publish testing)

If you want import the new version of the schemas created by you, e.g. in case of the integration new dataset, you can use the following commands:

npm run build && npm pack

This commands create package in the zip file named e.g. golemio-schema-definitions-VERSION.tgz. Then you can import this zip as module using command:

npm install path/to/zip/golemio-schema-definitions-VERSION.tgz --save

or

yarn add path/to/zip/golemio-schema-definitions-VERSION.tgz --save

Database Migrations

For database migrations set the env variables POSTGRES_CONN and MONGO_CONN or create .env file (copy .env.template) and set the configuration variables and then run:

npm run migrate-db

or

for Mongo:

npm run migrate-mongo-db

for Postgre:

npm run migrate-postgres-db

For Postgre the database has to exist.

For more informations read db-migrate docs or migrate-mongo docs and migration manual in docs/migrations.md file.

Documentation

More documentation in docs/. Mainly new_dataset_integration.md for description on how to add a new dataset.

Contribution guidelines

Please read CONTRIBUTING.md.

Problems?

Contact benak@operatorict.cz or vycpalek@operatorict.cz

2.4.1

7 months ago

2.4.0

7 months ago

2.4.2

7 months ago

2.3.6-rc.928810451

11 months ago

2.3.7-rc.933285326

10 months ago

2.3.8-rc.943119382

10 months ago

2.3.8

10 months ago

2.3.7

10 months ago

2.3.9

10 months ago

2.3.8-rc.944870919

10 months ago

2.3.9-dev.944547971

10 months ago

2.3.6-dev.915901927

11 months ago

2.3.8-dev.933285623

10 months ago

2.3.9-rc.945690567

10 months ago

2.3.8-rc.945680741

10 months ago

2.3.8-rc.943115387

10 months ago

2.3.10

7 months ago

2.3.8-dev.936365454

10 months ago

2.3.7-rc.933280535

10 months ago

2.3.9-rc.945699965

10 months ago

2.3.8-rc.945660484

10 months ago

2.3.8-dev.938720611

10 months ago

2.3.7-rc.936398816

10 months ago

2.3.9-dev.943777395

10 months ago

2.3.9-dev.945740449

10 months ago

2.3.8-dev.939815918

10 months ago

2.3.6-dev.914524190

11 months ago

2.3.6

12 months ago

2.3.6-rc.896733870

12 months ago

2.3.6-dev.891968413

12 months ago

2.3.6-rc.892280765

12 months ago

2.3.6-rc.896747481

12 months ago

2.3.2

1 year ago

2.3.4

1 year ago

2.3.3

1 year ago

2.3.5

1 year ago

2.3.1

1 year ago

2.3.0

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.48

2 years ago

2.0.49

1 year ago

2.0.47

2 years ago

2.0.51

1 year ago

2.0.50

1 year ago

2.0.46

2 years ago

2.0.44

2 years ago

2.0.45

2 years ago

2.0.43

2 years ago

2.0.37

2 years ago

2.0.38

2 years ago

2.0.39

2 years ago

2.0.42

2 years ago

2.0.40

2 years ago

2.0.41

2 years ago

2.0.35

2 years ago

2.0.36

2 years ago

2.0.33

2 years ago

2.0.34

2 years ago

2.0.32

2 years ago

2.0.31

2 years ago

2.0.28

2 years ago

2.0.29

2 years ago

2.0.30

2 years ago

2.0.26

2 years ago

2.0.27

2 years ago

2.0.24

2 years ago

2.0.25

2 years ago

2.0.22

2 years ago

2.0.23

2 years ago

2.0.21

2 years ago

2.0.20

3 years ago

2.0.19

3 years ago

2.0.18

3 years ago

2.0.17

3 years ago

2.0.16

3 years ago

2.0.15

3 years ago

2.0.14

3 years ago

2.0.13

3 years ago

2.0.12

3 years ago

2.0.11

3 years ago

2.0.10

3 years ago

2.0.7

3 years ago

2.0.9

3 years ago

2.0.8

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.6

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.8.11

3 years ago

1.8.10

3 years ago

1.8.9

3 years ago

1.8.8

3 years ago

1.8.7

3 years ago

1.8.6

3 years ago

1.8.5

3 years ago

1.8.4

3 years ago

1.8.2

3 years ago

1.6.3

3 years ago

1.6.2

3 years ago

1.5.0

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

0.3.0

4 years ago

1.0.0

4 years ago