You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39-4Lines changed: 39 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,6 @@
2
2
3
3
This is a fork of DHGWorkflow, visual Directed Hypergraph Workflow Composer, finetuned to operate as a frontend for _concore_.
4
4
5
-
Active development of the _concore_ Editor happens in the dev branch. Please check it out!
6
-
7
5
Key Features of the _concore_ Editor:
8
6
* Export-import graph as a graphml file.
9
7
* Export graph as JPEG/PNG
@@ -22,8 +20,9 @@ Steps to start it locally
22
20
2. At the root of the repository, run the following commands:
23
21
1.`npm i`
24
22
2.`npm start`
25
-
3. It should a development server and tool will be accessible at
23
+
3. It should start a development server and tool will be accessible at
26
24
`http://localhost:3000/DHGWorkflow`
25
+
4. Note - In case, you're using Windows and see the linebreak-error please modify line 53 in `.eslintrc.json` file to `"linebreak-style": ["error", "windows"]`. Make sure you do not commit this change to prevent default environment.
27
26
28
27
## Creating a generic Graph Builder.
29
28
@@ -35,6 +34,25 @@ This branch will be synced with the changes from the main periodically. Easy to
35
34
2.`npm i`
36
35
3.`npm start`
37
36
37
+
If this throws a long error in the browser and console about line endings (LF/CRLF), please follow the below steps.
38
+
39
+
In ~/.gitconfig, set autocrlf to false as below.
40
+
````
41
+
[core]
42
+
autocrlf = false
43
+
````
44
+
45
+
Then run the below from the concore editor source code in terminal.
46
+
47
+
````
48
+
git rm --cached -r .
49
+
git reset --hard
50
+
git pull --rebase
51
+
````
52
+
53
+
Now re-run with npm as above.
54
+
55
+
38
56
This branch may contain `src/graph-builder/tailored-graph-builder.js`. It can be safely removed.
39
57
40
58
### 2. Make changes to the master branch
@@ -53,4 +71,21 @@ This project requires building a graph with some special kind of hyperedges.
53
71
54
72
If we create our instance of the graph with `tailored-graph-builder`, we will get graph builder which will have hyperedges specialized for this project requirement whereas creating the instance from `graph-core` will result in a generic graph builder with simple edges.
55
73
56
-
74
+
# Deploying concore-editor in GitHub
75
+
76
+
If you have forked this repository, make sure to configure the GitHub actions. This is done *only once* for the entire GitHub deployment. Go to your fork's settings/pages (for example, https://github.com/pradeebanlab/concore-editor/settings/pages), and enable the GitHub Pages as shown below.
Once this is configured, every time you want to update the hosted concore-editor, you need to run the "Build and Deploy" action as elaborated below.
81
+
82
+
We have two workflows.
83
+
84
+
* Build - triggers automatically on every push and pull just to ensure the new PRs are consistent.
85
+
86
+
* Build and Deploy - This has to be triggered manually and updates the online deployed version. This ensures that any PR containing breaking change doesn't affect the user directly
87
+
88
+
89
+
Please go to the url https://github.com/ControlCore-Project/concore-editor/actions/workflows/buildAndDeploy.yml and trigger this particular workflow. This will in turn automatically trigger the Pages Build and Deploy action. Once that action also completes successfully, the new page will be alive. Depending on the nature of the changes, you may need to clear the cache/cookies to make the changes visible to your browser. You can choose to delete just the cookies and data of controlcore-project.github.io as stored in your browser. Please check the browser documentation for more information on deleting the cookies.
0 commit comments