registreerocks / registree-core

0 stars 0 forks source link

Registree Core

Description

Core graphql server for registree.

Installation

$ yarn

Running the app

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

Test

# create .env from .env.tests
$ cp .env.tests .env

# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov

Docker image validation with goss

The repository contains a goss spec to validate the built Docker image.

To run the validation:

dgoss run --env-file .env registree-core_registree-core

Transcript of interactively drafting the goss tests:

$ docker-compose build
$ dgoss edit --env-file .env registree-core_registree-core
/goss $ goss add process node
/goss $ goss add port 3000