Skip to content

SeedCompany/cord-api-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8,942 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CORD API v3

Description

Bible translation project management API.

Requirements

  1. Docker from their website (complications with homebrew)
  2. NodeJS (brew install node corepack && corepack enable)
  3. Gel (brew install geldata/tap/gel-cli)

Setup

  1. Ensure you meet the NodeJS version requirement found in package.json.
  2. Ensure corepack is enabled corepack enable
  3. Run yarn to install dependencies
  4. Copy .env.local.example to .env.local and fill in any required values
  5. Start the databases:
    docker-compose up -d db postgres
  6. Setup a Gel instance (the current primary database):
    gel project init
    yarn gel:gen

Database

The app is mid-migration from Neo4j to PostgreSQL. Both databases run simultaneously. The DATABASE env var controls which is active for each domain:

Value Behavior
neo4j (default) All domains use Neo4j
postgres Domains with a PostgreSQL repository use it; rest fall back to Neo4j

Both services must be running locally regardless of which mode is active:

docker-compose up -d db        # Neo4j
docker-compose up -d postgres  # PostgreSQL

PostgreSQL migrations run automatically on startup when DATABASE=postgres. To generate a new migration after a schema change:

yarn migrate:generate

Usage

Develop: yarn start:dev
Test: yarn test:e2e

See scripts in package.json for other commands to run

Documentation

NestJS Gel GraphQL

License

CORD is MIT licensed.

About

Bible translation project management API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors