Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PRIME-TU-Delft/graaf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

437 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PRIME Grpah Editor

Preview

https://graaf--preview.netlify.app

Installation

Create an .env file in the root of the project with the following content:

DATABASE_URL="postgres://root:mysecretpassword@localhost:5432/local"
# Terminal 1
cd db
podman compose up db # Or docker compose up db

# Terminal 2
pnpm install

pnpm prisma generate # will generate the prisma client
pnpm prisma db push # will setup the database schema
pnpm prisma db seed # will setup the database with some initial data

Usage

# Terminal 1 - if not already running
cd db
podman compose up # Or docker compose up

# Terminal 2
pnpm dev

Testing

pnpm test:integration
flowchart LR;
	TEST_DB[(Test Database)]
  TEST_DB --> P1["`**ProgramOne**
      +SuperAdmin`"]
  TEST_DB --> P2["`**ProgramTwo**
      +SuperAdmin
      +ProgramAdmin`"]
  TEST_DB --> P3["`**ProgramThree**
      +SuperAdmin
      +ProgramEditor`"]

  C1["`**CourseOne**
      +SuperAdmin`"]
  C2["`**CourseTwo**
      +SuperAdmin
      +CourseAdmin`"]
  C3["`**CourseThree**
      +SuperAdmin
      +CourseEditor`"]


  P1 ==> C1 & C2 & C3
  P2 & P3 --> C1 & C2 & C3

  C1 -->G1
  C2-->G2["GraphTwo"]
  C3-->G3["GraphThree"]

  G2 & G3 --> A
  A@{ shape: braces, label: "GraphTwo & GraphThree have the same content as GraphOne as a copy (not reference)" }

  subgraph G1["GraphOne"]
    D1["DomainOne"]-->D2["DomainTwo"]-->D3["DomainThree"]
    S3["SubjectThree"] --> S2["SubjectTwo"] --> S1["SubjectOne"]

    S1 & S2 ==> D1
    S3 ==> D2
  end
Loading

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •