GithubHelp home page GithubHelp logo

e7valle / react-tinder-card-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 3djakob/react-tinder-card-demo

0.0 0.0 2.0 25.59 MB

This is a demo for react-tinder-card which is a react module for making elements behave like cards in the ever so popular dating app tinder.

Home Page: https://3djakob.github.io/react-tinder-card-demo/

JavaScript 69.90% CSS 20.50% HTML 9.60%

react-tinder-card-demo's Introduction

Project Name: Tastebuds

A react application that lets friends decide where to eat, when no one can decide where to eat! One user creates a session and enters in the cuisine type, location, radius and price range option and can share the code with their friends. On their own device, each friend can swipe left or right to vote for each restaurant. Finally, you'll be directed to the results page showcasing the most voted restaurant.

To install

On Local network:

  1. Ensure Node.js is installed
  2. Install the dependences: npm install npm install socket.io socket.io-client express
  3. Start the server: node server.js
  4. Run the client: npm start

Setup

  1. Ensure devices are on a local network, or that the application server(where you deployed) is accessable by those devices.
  2. Start the Tastebuds application
  3. Visit http://your.ip.address:8080 on a PC, Tablet, SmartTV or other large screen device
  4. Click CREATE
  5. On a mobile device, visit http://your.ip.address:8080
  6. Click JOIN on the mobile device screen.
  7. Follow the on-screen instructions to join a game.
  8. Find a tastebud/s and have him/her/other repeat steps 5-7 on another mobile device.

Session

  1. On the creator screen (the Session Host), parameters for restaurants will appear, zip, radius, location, prices and cuisine type. Submit and session will begin.
  2. Session host sends the unique to their tastbuds.
  3. Tastbuds click 'join' and enter in the unique code.
  4. On each users' screen, 5 cards will appear populated with restaurants. Card displays address, price and rating.
  5. After each card is swiped, the card with the most likes will be chosen as winner.

Try the demo

Try the demo on the gh-pages site here!

The code

Feel free to check out the code in react-tinder-card-demo/src/examples for a usage example of how this application uses the module.

Simple

The simple example is the minimum code needed to get you started.

Advanced

The advanced example implements a state with references to swipe and restore cards using buttons.

Demo

Both code examples can be tested on the demo page.

react-tinder-card-demo's People

Contributors

3djakob avatar avillal66 avatar e7valle avatar luk-z avatar mdhowden2020 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.