Coder Social home page Coder Social logo

socialnetworkspark's Introduction

SocialNetworkSPARK

Social Network using SPARK Dataset

Le but de ce projet est de faire un réseau social en utilisant SPARK en SCALA.

Nous avons donc implémenter ce réseau contenant des utilisateurs qui peuvent envoyer des messages, faire des posts, poster leur localisation et liker des posts.

Pour cela nous stockons nos données dans Cassandra, et nous mettons ces donnée dans des fichiers HDFS toutes les heures.

Nous avons crée une API pour pouvoir ingérer les données dans kafka directement depuis l'API.

Documentation des API REST #####:

Le point d'entrée est /api

Location Partie:

GET /location/id?q={locationId} Retourne la location associé à l'id

POST /location Lance un producer Location

Message Partie:

GET /message/id?q={messageId} Retourne le message associé à l'id

POST /message Lance un producer Message

User Partie:

GET /user/id?q={userEmail} Retourne l'utilisateur associé à l'email

POST /user Lance un producer User

Like Partie:

GET /like/id?q={likeId} Retourne le like associé à l'id

POST /like Lance un producer Like

Post Partie:

GET /post/id?q={likeId} Retourne le post associé à l'id

POST /post Lance un producer Post

Partie Recherche:

Le {dateFrom} est au format yyyy-MM-dd

GET /search/date/from?q={dateFrom}&brand={brand} Retourne tout les messages et post faisant référence à la marque {brand} à partir de la date {dateFrom}

GET /search/date/to?q={dateFrom}&brand={brand} Retourne tout les messages et post faisant référence à la marque {brand} avant la date {dateFrom}

GET /search/date/any?from={dateFrom}&to={to}&brand={brand} Retourne tout les messages et post faisant référence à la marque {brand} à partir de la date {dateFrom} jusqu'à la date {to} GET /search?brand={brand} Retourne tout les messages et post faisant référence à la marque {brand}

----Example----:

Faire une recherche de message et topic sur la marque Adidas:

$ curl -X GET http://localhost:8080/api/search?brand=adidas

socialnetworkspark's People

Contributors

stelyus avatar axelaco avatar

Watchers

 avatar

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.