{"id":13554833,"url":"https://github.com/dgraph-io/graphoverflow","last_synced_at":"2025-04-03T07:33:02.555Z","repository":{"id":21288320,"uuid":"92130843","full_name":"dgraph-io/graphoverflow","owner":"dgraph-io","description":"Run the entire StackOverflow on Dgraph. Work in progress.","archived":true,"fork":false,"pushed_at":"2024-07-16T14:17:54.000Z","size":4501,"stargazers_count":116,"open_issues_count":0,"forks_count":27,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-08-01T12:33:16.387Z","etag":null,"topics":["dgraph","stackexchange","stackoverflow"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dgraph-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-05-23T04:56:24.000Z","updated_at":"2024-07-16T14:17:54.000Z","dependencies_parsed_at":"2024-02-29T00:47:46.699Z","dependency_job_id":null,"html_url":"https://github.com/dgraph-io/graphoverflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgraph-io%2Fgraphoverflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgraph-io%2Fgraphoverflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgraph-io%2Fgraphoverflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgraph-io%2Fgraphoverflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgraph-io","download_url":"https://codeload.github.com/dgraph-io/graphoverflow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222935627,"owners_count":17060398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dgraph","stackexchange","stackoverflow"],"created_at":"2024-08-01T12:02:55.815Z","updated_at":"2024-11-04T03:31:21.151Z","avatar_url":"https://github.com/dgraph-io.png","language":"JavaScript","readme":"# Graphoverflow\n\nA blazingly fast Stack Overflow clone running the real Stack Exchange dataset.\n\n**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.**\n\n**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**\n\n## Running locally\n\n### First Thing first\n\nBefore starting, make sure that Dgraph is running on default ports (8080, 9080 ...)\nThen go to Ratel UI or by cURL and set the Schema in the schema.txt file. Without this\nit won't work.\n\n\u003e Avoid to use ACL with this project.\n\n### Node\n\n0. 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.\n1. 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.\n2. Run `npm install` in the root directory.\n3. Run `npm install` in the `/client` directory.\n4. In the root directory, run `npm run dev`.\n\n\u003e You can also instead of steps 2, 3, and 4, you can just run sh ./run.sh\n\n### Docker Compose\n\nWe have a dockerized env so you can run this project.\n\n1. Run Docker-composer\n\nThe first build will take time.\n```\ndocker-compose up            # In the first time\nor\ndocker-compose up --build    # If you wanna rebuild it\n```\nThe compose has a script that will prepare everything for you. You might wait for the deployment to be done and updated the page if so.\n\n2. Now go to localhost:3000 or the IP if you are running docker in a VM.\n\n### If anything goes wrong\n\nIf the page loads but keeps showing the animated loader. It means that something goes wrong. You should see a loaded site with empty questions.\n\n\u003eYou don't need to do much when running this docker-compose. In general, if you are running docker in a VM the IP is 192.168.99.100 (between 99 and 199, you can check it via docker-machine). In that case, you gonna need to change all addresses in the code from localhost or 127.0.0.1 to the VM IP.\n\n\u003ePaths you might change: \\\napp/client/src/lib/helpers.js \\\napp/helpers.js\n\n\u003ePay attention that this docker-composer will create a volume in your docker env.\n\n\u003eIf your docker is binded to localhost. Don't change anything.\n\n### Clean up docker.\n\n```\ndocker-compose down\nor\ndocker-compose rm\n```\nand\n```\ndocker stop $(docker ps -a -q)\n\ndocker rm $(docker ps -a -q)\n\ndocker volume ls\n\ndocker volume rm graphoverflow_dgraph\n```\n\n### Dgraph\n\nThis app is currently compatible with Dgraph v20.xx.x\n\n1. Run Docker\n\n       docker run -it -p 8080:8080 -p 9080:9080 \\\n       -v ~/dgraph:/dgraph --name dgraph dgraph/dgraph:v20.03.1 \\\n       dgraph alpha --bindall=true\n\n    PS. You can also run this project with Dgraph binaries instead of Docker.\n\n2. Choose, download and unarchive a data dump from https://archive.org/details/stackexchange, for example [lifehacks.stackexchange.com.7z](https://archive.org/download/stackexchange/lifehacks.stackexchange.com.7z)\n\n3. Convert stackexchange data from relation to graph. From the current directory:\n\n       for category in comments posts tags users votes; do go run $category/main.go -dir=\"$HOME/Downloads/lifehacks.stackexchange.com\" -output=\"/$HOME/dgraph/$category.rdf.gz\"; done\n\n4. Run the [schema mutation](https://github.com/dgraph-io/graphoverflow/blob/master/schema.txt)\n\n5. Load graph data files into Dgraph. From the current directory:\n\n       for category in comments posts tags users votes; do docker exec -it dgraph dgraphloader -r $category.rdf.gz; done\n\n\n## Stack\n\n* React\n* node.js\n* Dgraph\n\n## Attribution\n\nUsing [Stack Exchange data dump](https://archive.org/details/stackexchange) under [Attribution-Share Alike 3.0](http://creativecommons.org/licenses/by-sa/3.0/)\n\n## License\n\nMIT\n","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgraph-io%2Fgraphoverflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgraph-io%2Fgraphoverflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgraph-io%2Fgraphoverflow/lists"}