2.4.2 • Published 2 years ago

@golemio/schema-definitions v2.4.2

Weekly downloads
420
License
MIT
Repository
gitlab
Last release
2 years 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

2 years ago

2.4.0

2 years ago

2.4.2

2 years ago

2.3.8

2 years ago

2.3.7

2 years ago

2.3.9

2 years ago

2.3.10

2 years ago

2.3.6

2 years ago

2.3.2

2 years ago

2.3.4

2 years ago

2.3.3

2 years ago

2.3.5

2 years ago

2.3.1

2 years ago

2.3.0

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.48

3 years ago

2.0.49

3 years ago

2.0.47

3 years ago

2.0.51

2 years ago

2.0.50

3 years ago

2.0.46

3 years ago

2.0.44

3 years ago

2.0.45

3 years ago

2.0.43

3 years ago

2.0.37

3 years ago

2.0.38

3 years ago

2.0.39

3 years ago

2.0.42

3 years ago

2.0.40

3 years ago

2.0.41

3 years ago

2.0.35

3 years ago

2.0.36

3 years ago

2.0.33

3 years ago

2.0.34

3 years ago

2.0.32

3 years ago

2.0.31

3 years ago

2.0.28

3 years ago

2.0.29

3 years ago

2.0.30

3 years ago

2.0.26

3 years ago

2.0.27

3 years ago

2.0.24

3 years ago

2.0.25

3 years ago

2.0.22

3 years ago

2.0.23

3 years ago

2.0.21

4 years ago

2.0.20

4 years ago

2.0.19

4 years ago

2.0.18

4 years ago

2.0.17

4 years ago

2.0.16

4 years ago

2.0.15

4 years ago

2.0.14

4 years ago

2.0.13

4 years ago

2.0.12

4 years ago

2.0.11

4 years ago

2.0.10

4 years ago

2.0.7

4 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.6

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.8.11

4 years ago

1.8.10

4 years ago

1.8.9

4 years ago

1.8.8

4 years ago

1.8.7

4 years ago

1.8.6

4 years ago

1.8.5

4 years ago

1.8.4

4 years ago

1.8.2

4 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.5.0

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

0.3.0

5 years ago

1.0.0

5 years ago