OKFounder MVP by Rodrigo Graça#12
Open
rodrigograca31 wants to merge 3 commits into
Open
Conversation
in order to make future commits diff more readable
after the user provides their information it shows compatible co-founders based on the exact match of following preferences: failure, communication, knowledge, integrity
Author
|
Just wanted to note that the sort actually works! .sort((profile1, profile2) => {
// console.log(profile1);
const failure1 = profile1.failure - this.props.profile.failure;
const com1 = profile1.com - this.props.profile.com;
const finalScore1 = Math.abs(com1 + failure1);
const failure2 = profile2.failure - this.props.profile.failure;
const com2 = profile2.com - this.props.profile.com;
const finalScore2 = Math.abs(com2 + failure2);
console.log(finalScore1 - finalScore2);
return finalScore1 - finalScore2;
});Also added the missing code so that it actually adds the user to the database instead of just doing a search: if (this.props.profile) {
db.insert("users", this.props.profile);
db.commit();
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
How do you find a co-founder?
According to my research, you need to be compatible in a few aspects, namely
This MVP first asks you how comfortable you are with those aspects and then makes an exact match with existing founders on the platform.
What can be improved:
Final notes:
Was a fun and creative challenge and I'm happy with the final result even though I wanted to finish the magical "matching algorithm", also never user
chakra-uibefore but it was quite easy, very similar to other frameworks.