Node and Express Servers dating app
- A compatibility-based "FriendFinder" application -- basically a dating app.
- This full-stack site will take in results from your users' surveys, then compare their answers with those from other users.
- The app will then display the name and picture of the user with the best overall match.
- express
- body-parser
- path
- Used Express to handle routing
- Javascript
- Jquery
- Ajax
- Nodejs
- Used Heroku for deployment for our backend application
- It will determine the user's most compatible friend using the following as a guide:
- Convert each user's results into a simple array of numbers (ex: [5, 1, 4, 4, 5, 1, 2, 5, 4, 1]).
- With that done, compare the difference between current user's scores against those from other users, question by question. Add up the differences to calculate the totalDifference.
- Example: User 1: [5, 1, 4, 4, 5, 1, 2, 5, 4, 1] User 2: [3, 2, 6, 4, 5, 1, 2, 5, 4, 1] Total Difference: 2 + 1 + 2 = 5
- Used the absolute value of the differences. Put another way: no negative solutions! Your app should calculate both 5-3 and 3-5 as 2, and so on.
- The closest match will be the user with the least amount of difference.
- Once you've found the current user's most compatible friend, display the result as a modal pop-up.
- The modal should display both the name and picture of the closest match.
- Clone this repo in your computer
- Initialize a package.json file at your project root by running npm init
- Install all the library(npm packages) used
- Run
node server.js
- Go to
localhost:3000
in your web browser.
- Click this for the heroku link
Copyright © 2018 Shirley Ramirez