Giter Site home page Giter Site logo

zappy's Introduction

zappy

Zappy integrates with a Slack bot and listens on specific messages. For simplicity, we the tool will listen on all messages containing the word “go”. places a messages on a bot containing the message “go”, the tool fetches twitter feeds from the specific account and saves in a mongo collection. the view that fetches tweets from mongoDB and shows in a table.

Diagram below visualizes the process.

Image description

get secrets from twitter:

https://developer.twitter.com/en/apps

create your bot and get the token :

https://api.slack.com/apps

add your tokens of bot and secrets of twitter (IMPORTANT) :

cd tweets_service
echo "slack bot token" > SLACK_BOT_TOKEN.txt
echo "consumer_key twitter" > consumer_key.txt
echo "consumer_secret twitter" > consumer_secret.txt
echo "access_key twitter" > access_key.txt
echo "access_secret twitter" > access_secret.txt

how to run in development mode:

cd zappy
bash start.sh

How to run using docker

To run the full system just use docker-compose:

cd zappy
docker-compose up 

check the tweets at

http://localhost:4200/

This App is composed of three main components

  • bot service:

    A service is responsible for:

      1- Receives a message from slack
      2- check if message have specific message
      3- goto twitter api to get all tweets of specific account 
      4- send all tweets to website service to save in mongodb through endpoint
    
  • Website Service (django) :

    A service is responsible for serving the website and currently it has only 2 routes:

      1- (/tweets): get all values from mongodb 
      2- (/tweetsApi): save all values in mongodb
    
  • web view Service:

    This service is responsible for show all tweets the get from endpoint from website service

zappy's People

Contributors

bolanasr avatar

Watchers

James Cloos avatar  avatar

Forkers

bola-nasr

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.