This application quizzes users on their temperaments and matches them to the person from in-memory storage with the most similar answers based on their inputs.
The application uses Bootstrap for the user interface. The application has an existing JavaScript file with an array of existing friends, including an array of their scores. The application will intake the data from the user and turn their scores into an array and send this to the server with an AJAX request. The application then takes the user's input scores and parses them. The software creates a new array of arrays of comparisons between the existing friends' scores and the user's inputted scores. From this new array, the application sends the most similar friend to the client side and displays it to the user. The program saves the user's inputs into the existing friend data. Express handles routing in the node backend. jQuery handles DOM manipulation.
In order for this application to run on your local computer, you must have Node.js installed as well as the required node modules.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Node.js and express packages are required to run this application locally.
- Clone this repo to your local machine using
https://github.com/dayadam/FriendFinder.git
- install Node.js from https://nodejs.org/en/
install npm packages
$ npm install
At the home screen, users can click the "Start survey" button to start the survey. Users can then fill out all the input fields and click the "Submit" button to enter their results. A modal will then pop up displaying the users' most similar friend match.
- Node.js - Server runtime environment for JavaScript
- Express.js - Fast, unopinionated, minimalist web framework for node.
- jQuery - Fast, small, and feature-rich JavaScript library
- Bootstrap - CSS framework directed at responsive, mobile-first front-end web development
- Adam Day - Adam Day
- Thanks to all the open source contributors that helped with the building blocks of this project.