Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit 2de9f78

Browse files
committed
update guides (md files)
1 parent 7ef9971 commit 2de9f78

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

README.md

+13-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A blazingly fast Stack Overflow clone running the real Stack Exchange dataset.
44

55
**NOTE: The repository is no longer being actively maintained by the Dgraph team. If something is broken, we'd happily accept a pull request from you, but won't fix anything ourselves.**
66

7-
**UPDATE: This project is properly updated to work with version 1.0.14 of Dgraph. It's working as expected on MacOS and Linux. There are some problems running the project on Windows, that can be solved by starting JS server and JS client separately. See "syntax_changed.md" for detailed instructions**
7+
**UPDATE: This project is properly updated to work with version 20.xx.x of Dgraph. It's working as expected on macOS and Linux. There are some problems running the project on Windows, that can be solved by starting JS server and JS client separately. See "syntax_changed.md" for detailed instructions**
88

99
[Live](https://graphoverflow.dgraph.io)
1010

@@ -16,21 +16,27 @@ Before starting, make sure that Dgraph is running on default ports (8080, 9080 .
1616
Then go to Ratel UI or by cURL and set the Schema in the schema.txt file. Without this
1717
it won't work.
1818

19+
> Avoid to use ACL with this project.
20+
1921
### Node
2022

21-
1. Run `npm install` in the root directory
22-
2. Run `npm install` in the `/client` directory
23-
3. In the root directory, run `npm run dev`
23+
0. You have to open Ratel UI, go to the panel schema. Then click in "Bulk Edit". And paste the file "schema.txt" in this repository.
24+
1. You may also have to read the `syntax_changes.md`. Cuz you may need to create a fake user if you don't wanna import the dataset we provide. You gonna run a "clean" GraphOverflow. And also workaround some bugs in Windows.
25+
2. Run `npm install` in the root directory.
26+
3. Run `npm install` in the `/client` directory.
27+
4. In the root directory, run `npm run dev`.
2428

25-
> You can also instead just run sh ./run.sh
29+
> You can also instead of steps 2, 3, and 4, you can just run sh ./run.sh
2630
2731
### Dgraph
2832

29-
This app is currently compatible with Dgraph v1.0.14
33+
This app is currently compatible with Dgraph v20.xx.x
3034

3135
1. Run Docker
3236

33-
docker run -it -p 8080:8080 -p 9080:9080 -v ~/dgraph:/dgraph --name dgraph dgraph/dgraph:v1.0.14 dgraph alpha --bindall=true --memory_mb 2048
37+
docker run -it -p 8080:8080 -p 9080:9080 \
38+
-v ~/dgraph:/dgraph --name dgraph dgraph/dgraph:v20.03.1 \
39+
dgraph alpha --bindall=true
3440

3541
PS. You can also run this project with Dgraph binaries instead of Docker.
3642

run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ installClient (){
99
echo "install Client"
1010
cd ./app/client
1111
npm install
12+
npm run build
1213
cd ../..
1314
echo "Finished"
1415
}

syntax_changes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Any help is welcome.
66

77
TODO - Need to fix some bugs like "Vote".
88

9-
Right now (4th of July, 2018) this project is working with Dgraph V1.0.6. We are using Dgraph-JS and Dgraph-JS-HTTP.
9+
Right now (26th of April, 2020) this project is working with Dgraph v20.03.1. We are using Dgraph-JS and Dgraph-JS-HTTP.
1010

1111
**Well Dgraph-js is a working in progress - You can use it, there are only conflicts to solve. Create a Fake user first if you do not want to generate an RDF as the README tells.**
1212

0 commit comments

Comments
 (0)