Git Product home page Git Product logo

graphoverflow's Introduction

Graphoverflow

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.6 of Dgraph. It's working as it should on MacOS and Linux. Only on the Windows platform are there problems that can be solved by starting JS Server and JS client separately. read the file "syntax_changes.md" for more details

Live

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.

Node

  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

Dgraph

This app is currently compatible with Dgraph v1.0.11-rc4

  1. Run Docker

    docker run -it -p 8080:8080 -p 9080:9080 -v ~/dgraph:/dgraph --name dgraph dgraph/dgraph:v1.0.11-rc4 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 https://archive.org/details/stackexchange, for example lifehacks.stackexchange.com.7z

  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/lifehacks.stackexchange.com" -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
    

Stack

  • React
  • node.js
  • Dgraph

Attribution

Using Stack Exchange data dump under Attribution-Share Alike 3.0

License

MIT

graphoverflow's People

Contributors

manishrjain avatar micheldiz avatar stephanebruckert avatar

Watchers

Lucas Caro avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.