GithubHelp home page GithubHelp logo

machadop1407 / musical-chat-frontend Goto Github PK

View Code? Open in Web Editor NEW
95.0 1.0 18.0 4.39 MB

Musical Chat is a platform where users are able to connect and Chat with people who have similar taste in music as them. The user needs to login with their Spotify account, which allows the platform to have access to the songs and genres they listen to. I created an algorithm which takes into account the favorite genres from users and match people based on it. Since there are several different genres, the algorithm takes into account how similar the genres are based on string similarity. When matched, they are able to chat in real time with each other using Web Sockets.

Home Page: https://nifty-shannon-f54cb6.netlify.app/

HTML 4.98% JavaScript 66.00% CSS 29.01%
spotify-web-api nodejs reactjs react socket-io mysql

musical-chat-frontend's Introduction

Musical Chat - Real Time Chat Between People with Similar Taste in Music

Description:

Musical Chat is a platform where users are able to connect and Chat with people who have similar taste in music as them. The user needs to login with their Spotify account, which allows the platform to have access to the songs and genres they listen to. I created an algorithm which takes into account the favorite genres from users and match people based on it. Since there are several different genres, the algorithm takes into account how similar the genres are based on string similarity. When matched, they are able to chat in real time with each other using Web Sockets.

Time Taken:

1 Month

Technologies Used:

  • ReactJS
  • NodeJS
  • WebSockets (Socket.io)
  • MySQL
  • HTML
  • CSS
  • Spotify API
  • Heroku

Front End:

This repository is for the front-end. The front-end is hosted on Netlify.

Back End

The back-end is hosted on two different Heroku Dynos. One for the Musical Chat Rest API, and the other for the Spotify Authentication. The back-end repository is: https://github.com/machadop1407/musical-connection

Design:

Database:

2 tables:

  • Users: Stores everything about the user including username, spotifyId, favorite genre, currentmatch, and current socket room.
  • Messages: Stores all messages and info about them including the message itself, the id of the user that sent, and the id of the user that recived.

Server-Side:

Rest API:

  • Express server with 3 routes:
    • Login: login route that checks if user already has an account in the platform. If not, it inserts a new row in the Users table and fetches all relevant info.
    • Matching: matching route that handles all matching requests. It also includes the matching algorithm described above.
    • Messages: messaging route that handles all CRUD operations related to messages.

Spotify Authentication:

  • Seperate server that utilizes Spotify's Authorization Code Flow method.

Front-End:

Front End fully developed in ReactJS using the create-react-app boiler plate

musical-chat-frontend's People

Contributors

machadop1407 avatar

Stargazers

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

Watchers

 avatar

musical-chat-frontend's Issues

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.