Loading repository data…
Loading repository data…
grassynull33 / repository
Homework #13

In need of a friend? Oh boy, time to get on our app, and find that special someone. After filling out a quick survey, our friend-matching algorithm will pair you with an individual in our network.

To use our web service, simply go to our homepage and take our state-of-the-art survey. Immediately after submitting the survey, your perfect best friend will pop up. We also have an API you can access to the network's users and their personalized information. For research purposes.
express, body-parser, and path npm packages in the server.js filehtmlRoutes.js and apiRoutes.js)friends.js)server.js file sets up the Express server, specifying our port number, the npm packages that need to be loaded, and also the routes, which we have externalizedhome.html and survey.html) that serve as the front-end portion of our code; they determine what the user sees (the homepage and the survey, which will also show the resulting best match)htmlRoutes.js and apiRoutes.js) determine the back-end logic (based on the request being made, the response that gets sent to the browser); the HTML routes display the survey and the homepage based on the URL that is accessed, and the API routes send back existing content in our server-side data or add new friends{
name: "Charlie",
photo: "https://vignette3.wikia.nocookie.net/itsalwayssunny/images/0/0a/Charlie_%289%29.jpg",
scores: [5, 1, 2, 3, 1, 2, 5, 1, 1, 1]
}