Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
/ ccims-backend-gql Public archive

Backend for the Cross-Component Issue Management System (Gropius) using a GraphQL-API

Notifications You must be signed in to change notification settings

ccims/ccims-backend-gql

Repository files navigation

CCIMS-Backend

The Backend for the ccims system using nodejs and providing a graphql library To get a recent version of the api, please use the branch dev

Schema generation

Schema for the /api access-restricted endpoint

For generating the schema file at schema/schema.graphql execute:

npm run schema schema/schema.graphq

This will generate a commented graphql schema from the most recent code version.

Printing schema to stdout: npm run --silent schema

Schema for the /api/public public user registration endpoint

For generating the schema file at schema/public.graphql execute:

npm run schema -- schema/public.graphq -p

This will generate a commented graphql schema from the most recent code version.

Printing schema to stdout: npm run --silent schema -- -p

Usage / Installation

No Login

If you want to test without login,

{
    "debugNoLogin": true
}

should be set in ./config/api.json

Without docker

Make sure that you have installed postgres

npm i
node .\scripts\database.js | psql -U postgres -d ccims
npm start

With docker

# for a clean build run this before docker compose:
rm tsconfig.tsbuildinfo
npm i
npm run database-file
docker-compose up

./config/postgres.json should look like this:

{
    "$schema": "./postgres.schema.json",
    "user": "ccims-user",
    "password": "ccims-password",
    "database": "ccims",
    "host": "db",
    "port": 5432
}

Access the db with psql:

psql --username ccims-user --dbname ccims --host localhost --port 5433
# password is 'ccims-password'

About

Backend for the Cross-Component Issue Management System (Gropius) using a GraphQL-API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages