Skip to content
Run the entire StackOverflow on Dgraph. Work in progress.
Branch: master
Clone or download


A blazingly fast Stack Overflow clone running the real Stack Exchange dataset.

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.

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 "" for detailed instructions


Running locally

First Thing first

Before starting, make sure that Dgraph is running on default ports (8080, 9080 ...) Then go to Ratel UI or by cURL and set the Schema in the schema.txt file. Without this it won't work.


  1. Run npm install in the root directory
  2. Run npm install in the /client directory
  3. In the root directory, run npm run dev

You can also instead just run sh ./


This app is currently compatible with Dgraph v1.0.14

  1. Run Docker

    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

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

  2. Choose, download and unarchive a data dump from, for example

  3. Convert stackexchange data from relation to graph. From the current directory:

    for category in comments posts tags users votes; do go run $category/main.go -dir="/users/$USER/Downloads/" -output="/users/$USER/dgraph"; done
  4. Run the schema mutation

  5. Load graph data files into Dgraph. From the current directory:

    for category in comments posts tags users votes; do docker exec -it dgraph dgraphloader -r $category.rdf.gz; done


  • React
  • node.js
  • Dgraph


Using Stack Exchange data dump under Attribution-Share Alike 3.0



You can’t perform that action at this time.