https://github.com/tomitrescak/c1
https://github.com/tomitrescak/c1
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomitrescak/c1
- Owner: tomitrescak
- Created: 2018-10-22T02:30:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-22T02:31:54.000Z (over 6 years ago)
- Last Synced: 2025-02-07T18:54:03.512Z (4 months ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.tsor
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/bashmysql -u root -p [password is prisma]
SET global general_log_file='/tmp/global.log';
SET global general_log = on;
SET global log_output = 'file';
exittail -f -n10 /tmp/global.log
```