Giter Site home page Giter Site logo

watch-with-me's Introduction

Watch with me

https://watch-with-me-glup3.herokuapp.com/

About

This project is a clone of the popluar website 'watch2gether'. You can watch Youtube Videos with others in real-time and there is also a simple chat implementation.

Author

Phuc Tran [email protected]

What I have learned

  • basic usage of Express Server
  • socket.io (websocket)
  • React Materialize
  • React

How to deploy

Note: dont ignore build folder in .gitignore

  • git checkout heroku-deployment
  • git merge master
  • npm run heroku-build
  • git push heroku master

watch-with-me's People

Contributors

glup3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

watch-with-me's Issues

Room IDs aren't easily sharable

Just discovered this project and I love it. Mobile support on watch2gether has been pretty much nonexistent, and yours worked like a charm!

I would love to start sharing links with my friends, but the room ID isn't encoded into the URL. It'd be really convenient if it did, and I think I'll try to submit a PR for it when I get a moment.

Also, it looks like the heroku instance died ๐Ÿ’”

Fatal exception when socket disconnects

Following up to #1

After looking over the code I found that a connection to postgres is attempted, and if that fails then the exception is thrown and the uncaught error event crashes the application. This would explain the error I saw on Heroku. I tried running the project locally and ran into that issue. My failure was because I didn't have a postgres instance running, but I would suspect there would be something else happening like that on heroku.

It looks like there was some testing going on there with getting the tables, and some state management stuff to let other socket clients know when a socket disconnects.

client.query('SELECT table_name FROM information_schema.tables;', (err, res) => {

I have a lot of experience using postgresql and socket.io, and we use it extensively at my job. I'd be more than happy to help out, send a PR, talk about design stuff etc ^_^

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.