Giter Club home page Giter Club logo

friend-finder-app's Introduction

Friend-Finder-App

Overview


A friend-matching app. Users answer questions about themselves and are displayed with the closest match from the database.

Getting Started


  • Clone down repo git clone [email protected]:liaswapna/Friend-Finder-App.git.
  • Navigate to the repo cd Friend-Finder-App.
  • Run command npm install in Terminal or GitBash
  • Run command node server to start ther server.

Technologies Used


  • HTML5
  • CSS3
  • Bootstrap
  • Node.js
  • Express

Dependencies


{
    "express": "^4.16.4",
}

Code Explanation


  • server.js : File that sets up the Express server, specifying the port number, the npm packages that need to be loaded, and also the routes, which we have externalized.

  • HTML files: Servers the front-end of the app.

    • home.html: This file serves the home page with navigation links to survey page and github.
    • survey.html: This page helps the user to finish the survey and submit it, there by getting the Best match.
  • Routing files: serves the back-end-routing logic.

    • htmlRoutes.js : This route file display the survey and the homepage based on the URL that is accessed.
    • apiRoutes.js: API routes send back existing content in our server-side data or add new friends.
  • Logic: Best match is calculated by finding the friend with the minimal difference in scores and then sending that friend to the browser as a JSON object.

    • A modal is then toggled, displaying the the best match to the person who just took the survey.
    • Friends are stored as such:
      {
          name: "lia",
          photo: "http://via.placeholder.com/640x360",
          scores: [5, 4, 2, 3, 1, 2, 5, 2, 1, 3]
      }
      

Demos


friend-finder-app's People

Contributors

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