GithubHelp home page GithubHelp logo

tomatotoaster / virtualreddit Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 2.44 MB

Browse Reddit through VR

Home Page: https://reddit360.com

License: MIT License

JavaScript 97.22% HTML 2.78%
react-360 redux reddit-api

virtualreddit's Introduction

Virtual Reddit

A way to browse Reddit in VR using React360

Live version available at reddit360.com

Getting started

  1. Register a developer app with reddit more details here
  2. Then copy the contents of configTemplate folder to a folder called config and replace the values in the apiKeys.js file
  3. Then install node and npm (if you don't have it)
  4. Open this directory in a terminal and then run...
    • npm install
    • npm start
  5. Then you can see the project running on localhost:8081/index.html

Troubleshooting

Image not loading

  • You're not seeing an image because it can be tricky to download certain images within React-360. Unfortunately, since reddit hosted images do not have Access-Control-Allow-Origin headers, I will have to run them through a proxy to get them properly and safely available on Virtual Reddit. I don't want to do that quite yet, because I'll have to pay for the network traffic of sending the images through my potential proxy server.
  • Until I set up a proxy, you will only be able to view externally hosted images like those from imgur. Sorry about that!
  • However, If you install the Chrome extension "Allow-Control-Allow-Origin," you can get around this issue, but make sure you turn off the extension after using it here. CORS protections are there for a reason!

Api Key issue

  • Make sure your files in your config folder (from step 2 of Getting Started) match the correct format in configTemplate

virtualreddit's People

Contributors

tomatotoaster 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.