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
+6-26Lines changed: 6 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,37 +22,17 @@ run:
22
22
23
23
## Environment Variables
24
24
25
-
Please note that you have to add /Config/.env.dev and include the env secrets. Please contact `laurlala#1696`, `jumbo#9999` or `Mae#6758
26
-
` on discord for these if you don't have them :)
25
+
Please note that you have to add /Config/.env.dev and include the env secrets. Please contact `laurlala#1696`, `jumbo#9999` or `Mae#6758` on discord for these if you don't have them :)
27
26
28
27
## Postgres Instructions
29
-
access interactive terminal by running `docker exec -it pg_container bash`
28
+
Access interactive terminal by running `docker exec -it pg_container bash`
30
29
now run this command `psql -d test_db -f infile` to load the dummy data we have prepared in ./postgres/infile
31
30
or run `make pg`
32
31
33
32
34
-
35
-
## Some Resources
36
-
Our editor uses quite a few algorithms so below is a list of resources you can use to learn about them and hopefully contribute to the editor :)
- A: run `make clean` then run `make dev-build` again, should fix it
47
-
48
-
- Q: something is horibbly broken
49
-
- A: manually remove all images in docker desktop GUI app and re-run `make dev-build` again
50
-
51
-
- Q: it says I don't have docker installed, but I have already installed docker before
52
-
- A: open your docker desktop app then re-run it
53
-
54
-
- Q: it still doesnt work
55
-
- A: google docker desktop WSL2 not detecting docker
34
+
- Q: Something is broken what to do?
35
+
- A: Run `make clean` then run `make dev-build` again, should fix it, if it is still broken then manually remove all images in the docker desktop GUI and re-run `make dev-build`.
56
36
57
-
- Q: Docker is taking up alot of space how to remove?
58
-
- A: docker is a ram/storage drainer but, you can remove useless volumes, run `docker volume prune`
37
+
- Q: Something has gone wrong with Docker, where can I find docker resources?
38
+
- A: Docker is rather well documented, check out the docker website: https://www.docker.com/ to try and resolve your issue.
Copy file name to clipboardExpand all lines: backend/README.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,33 @@ The backend folder contains all our backend code 🤯. Theres a few important fo
8
8
-### `endpoints/`
9
9
- Contains all our HTTP handlers + methods for decorating those handlers, additionally provides methods for attaching handlers to a `http.ServeMux`
10
10
-### `editor/`
11
-
- Contains all the backend code for synchronisation (bit of a mess right now 😭). It is essentially just a big implementation for the differential sync algorithm and supports extension via the construction of `extensions`
11
+
- There are currently 3 different editor backends, once the OT backend is fully complete this will collapse down to just OT
12
+
- The OT folder contains our implementation of the operational transform algorithm, specifically Google WAVE OT
13
+
- The pessimistic editor is a lock based editor, instead of implementing an optimistic concurrency protocol it simply locks the editor while a conflicting client is using it
14
+
- The diffsync folder contains all the backend code for synchronisation (bit of a mess right now 😭). It is essentially just a big implementation for the differential sync algorithm and supports extension via the construction of `extensions`
12
15
- The package allows multiple clients to be connected to the same document and ensures that each client sees the exact same document state (via a best effort diff + patch)
13
16
- Currently only works on strings with no inheret structure but in the future will work on JSON documents too 😀
14
-
-### `algorithms/`
15
-
- Mostly algorithms used by the editor such as Myer's string difference algorithm (glorified BFS tbh) and some prefix/suffix computation
16
17
-### `environment/` & `internal/`
17
18
- Methods/packages that can be used to retrieve information about the current environment and other internal utilities
18
19
-### `client`
19
20
- WIP TypeScript implementation of client server for operational transform
21
+
22
+
23
+
## Papers worth Reading
24
+
Most of the complexity of the CMS backend is within the editor, to aid with your tickets we have accumilated a few great resources that are worth a read.
25
+
-[A survey of OT algorithms](https://www.researchgate.net/profile/Ajay-Khunteta-2/publication/45183356_A_Survey_on_Operational_Transformation_Algorithms_Challenges_Issues_and_Achievements/links/5b9b27dca6fdccd3cb533171/A-Survey-on-Operational-Transformation-Algorithms-Challenges-Issues-and-Achievements.pdf?origin=publication_detail)
-[Google Wave OT (Multi-client single server OT)](https://svn.apache.org/repos/asf/incubator/wave/whitepapers/operational-transform/operational-transform.html)
28
+
-[Transformation algorithms for ordered n-ary trees](https://arxiv.org/pdf/1512.05949.pdf)
0 commit comments