Skip to content

tomitrescak/corporator

Repository files navigation

Corporator

Development

  1. run npm run server in corporator directory to launch application at port 3000
  2. run npm run luis in corporator directory to start component catalogue at port 9001
  3. in your snapshot-spy-monitor directory run npm start

Front End

https://react.semantic-ui.com

Introduction

BPMN marvel

  • BPMN 2.0

How to Remove Next.js

yarn remove @zeit/next-typescript, next, next-images, babel-plugin-styled-components, @types/next
rm next.config.js
rm .babelrc

Generate typescript for client queries

apollo-codegen introspect-schema ./src/data/generated/prisma.graphql --output schema.json apollo-codegen generate */.schema.graphql --schema schema.json --target typescript --output operation-result-types.ts

or

apollo schema:download schema.json --endpoint=http://localhost:4000 apollo codegen:generate types --outputFlat --queries="src/data/*/client/.graphql" --schema schema.json --target typescript

Apollo Modifications

I have the snake casing in types As a result we will have to manually modify the type in 'apollo-codegen-typescript/lib/language.js'

nameFromScopeStack(scope) {
    return scope.map(s => s[0].toUpperCase() + s.substring(1)).join('');
  }

SPY on queries

docker exec -it prisma_mysql_1 /bin/bash

mysql -u root -p         [password is prisma]

SET global general_log_file='/tmp/global.log';
SET global general_log = on;
SET global log_output = 'file';
exit

tail -f -n10 /tmp/global.log