GithubHelp home page GithubHelp logo

lovdeep7 / speeddating Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 79 KB

Find your Valentine with PubNub's ChatEngine

Home Page: https://pubnubdate.herokuapp.com/

HTML 31.14% JavaScript 31.53% CSS 37.33%
pubnub pubnub-chatting

speeddating's Introduction

SpeedDating

Find your Valentine this year by building a PubNub ChatEngine powered speed dating app.

Tutorial: https://medium.com/@lovdeepsingh/how-to-find-your-love-through-pubnub-chatengine-%EF%B8%8F-5847e9a16a8b

Background

As Valentine's Day is just around the corner, what better way is to spend it alone and building a fun Speed Dating app through using PubNub's SDK? SpeedDating is built behind the idea that current dating apps incorrectly focus on matchmaking through static images - SpeedDating frontloads the messaging experience. It uses a powerful chat engine by PubNub to create a dating experience where you have five minutes to speak to the person you are matched with. While this app focusses on the chatting and speed dating experience, this app can be expanded to allow for matchmaking after the five minutes, incorporating a sophisticated map system and image-based profiles.

How it Works

The backend of this app is a simple node.js service running on an Express server. Due to PubNub's powerful realtime data-streaming capabilities, it eliminates the need for a complicated back-end. The client-facing chat is created through PubNub's next generation chat library, ChatEngine, through the use of rooms that a maximum of two Users may connect to. After the app connects two users to the same user through some simple logic matching age and gender, the users send messages using emit message events and PubNub messages that the users subscribe and publish to. This works beautifully with ChatEngine's on method that is able to run logic through a promise when the event is triggered (or emitted). After 5 minutes, or when a user disconnects, the users are disconnected from the ChatEngine chatroom and they have the opportunity to chat with their next match.

Demo

https://pubnubdate.herokuapp.com/

SpeedDatingGif

Installation

Prerequisities:

node.js

Install node_modules:

npm i

Start service:

npm start

speeddating's People

Contributors

lovdeep7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.