Giter VIP home page Giter VIP logo

juninhokaponne / friendrecomendation Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 4.0 475 KB

This project aims to use a simple recommendation algorithm, initially it was made for a challenge and today it counts as a free repository for everyone to contribute.

JavaScript 96.57% Shell 0.60% TypeScript 2.83%
algorithms hacktoberfest javascript jest node nodejs recomendation-algorithm recommender-system test testing

friendrecomendation's Introduction

Hi there 👋

I'm Gilson.

💻  About Me

  • 🤔   Exploring new technologies and developing software solutions to our worlds tech problems.
  • 🎓   Studying Javascript stack, and contribuing to the community with clean codes.

🛠  Tech Stack

  • 🌐   HTML CSS JavaScript Bootstrap Node.js React Next.js

  • 🛢   MongoDB

  • ⚙️   Git GitHub Markdown

  • 🔧   Visual Studio Code

Latest Articles

My Stats

🤝🏻  Connect with Me

friendrecomendation's People

Contributors

akshay02022 avatar juninhokaponne avatar manzil-infinity180 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

friendrecomendation's Issues

Can we refractor this part or Not

from src/controller/PersonController.js
line - 9

if (!cpf || cpf.toString().length !== 11) {
      throw new AppError("CPF must contain exactly 11 numeric digits.", 400);
    }

as we already have in - src/middleware/validateCPF.js

Developing the landing page

Hey, I would love to contribute to this project and develop a landing page with proper info on how to proceed for the same.

Discussion on Algorithm Improvement for Bidirectional Friend Recommendations

Hey @juninhokaponne ,

I hope you're doing well. I was going through the project, and I must say it's quite interesting. I've reviewed the functional requirement document and noticed that your algorithm currently focuses on unidirectional recommendations.
image

To clarify, in the current setup, if 'A is a friend of B, A is a friend of C, B is a friend of D, C is a friend of D and E,' and we ask for a recommendation for A, the output will be D and E. However, for entities B, C, D, and E, there would be no recommendations, resulting in an empty response.

My question is whether we are intentionally focusing on implementing unidirectional relationships, or if we have the flexibility to enhance the algorithm to consider bidirectional relationships as well. In other words, if A is a friend of B, it implies that B is also a friend of A.

I hope this clarifies the objective I wanted to discuss. Looking forward to your insights on this matter.

Refractor the Router

Example - Move this to controller file with specific file and then exports from the controller
(req, res) => {
const { cpf, name } = req.body;
const result = personController.createPerson(cpf, name);
res.status(result.error ? 400 : 200).send(result);
}

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.