ORM for Skiosa with TypeORM. This Repo exposes a private NPM Package witch can be used by the other Services
This Module exports ORM classes with the GraphQL decorators
This ORM Package works with Postgres so a Postgres Database is required.
To install this package use the following command:
npm i git@github.com:skiosa/orm.git#<version-tag>
version-tag is optional and can be used to install a specific version of the package.
Use npm update to update the package.
We will use a specific Version. To update the Version the easiest way to update is remove the package and reinstall it with the new Version tag
To use the ORM in the Service, import the ORM classes and the ORM module. You have to set following environment variables to ensure connection to the database:
- POSTGRES_HOST
- POSTGRES_PORT
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
If questions arise ask jeppard.
This repository has a Dockerfile and a Docker Compose file. These are Visual Studio Devcontainers. With the Remote - Containers extension you can connect to the Docker Containers.
This repository has a .eslintrc file. Run eslint with npm run lint
This repository has a .prettierrc file. Run prettier with npm run format
This repository has test files. Run tests with npm test.
Testing is done with mocha and chai.
(Testing is not yet implemented)
To build the project run npm run build
To push a new version to git use npm version <version>
For documentation of version look here
Remember to push both commits and tags to git.