GithubHelp home page GithubHelp logo

rawsanj / spring-twitter-stream Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 24.0 3.98 MB

Spring Boot - Spring Social - Twitter Stream with Word Cloud and Tweet Search

Home Page: https://spring-tweets.herokuapp.com

License: MIT License

Java 32.45% HTML 25.56% JavaScript 26.49% CSS 15.51%
spring-twitter-stream spring-social thymeleaf d3js spring-boot twitter heroku cloud-foundry server-sent-events

spring-twitter-stream's Introduction

Spring-Twitter-Stream Build Status

Spring Boot - Spring Social Twitter - D3.Js webapp for Streaming Live #HashTags and source location of Tweets.

Demo - Live Demo @ Heroku

Spring Twitter Stream Demo

Installation

Clone the Github repository

$ git clone https://github.com/RawSanj/Spring-Twitter-Stream.git

Twitter App and Configuration

  1. Login to https://apps.twitter.com
  2. Create a New Application and note down the Consumer Key, Consumer Secret, Access Token and Access Token Secret.
  3. Edit the /src/main/resources/application.properties and add above noted keys.

Run the application

$ mvn spring-boot:run

Then navigate to http://localhost:8080 in your browser.

Deploy to Cloud Foundry

Package the application (creates spring-twitter-stream-0.1.0.war file)

$ mvn clean package

Pre-requisite:

  1. Account @ http://run.pivotal.io. $87 Credit Free Account.
  2. cf cli is installed - http://docs.cloudfoundry.org/cf-cli

Login to Pivotal Cloud Foundry

$ cf login -a https://api.run.pivotal.io

Deploy the application

$ cf push spring-twitter-app -p target/spring-twitter-stream-0.1.0.war --random-route

Deploy to Heroku

Package the application (creates spring-twitter-stream-0.1.0.war file)

$ mvn clean package

Pre-requisite:

  1. Account @ https://www.heroku.com. Free Account.
  2. heroku cli is installed - https://devcenter.heroku.com/articles/heroku-cli

Login to Heroku

$ heroku login

Install Heroku cli deploy plugin

$ heroku plugins:install heroku-cli-deploy

Create the application in Heroku

$ heroku create spring-tweets-app

Deploy the application

$ heroku war:deploy target/spring-twitter-stream-0.1.0.war --app spring-tweets-app

Tools and Tech

The following tools, technologies and libraries are used to create this project :

  • Spring Boot - (Spring Social Twitter, Spring SseEmitter)
  • Thymeleaf - (Thymeleaf is a template engine capable of processing and generating HTML, XML, JavaScript, CSS and text.)
  • D3Js - D3.js is a JavaScript library for manipulating documents based on data.
  • Spring Tool Suite
  • Git

License


The MIT License (MIT)

Copyright (c) 2017. Sanjay Rawat

spring-twitter-stream's People

Contributors

rawsanj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spring-twitter-stream's Issues

No ConnectionRepository found while running locally

While running mvn spring-boot:run:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.3.3.RELEASE:run (default-cli) on project spring-twitter-stream: An exception occurred while running. null: InvocationTargetException: Error creating bean with name 'jsonTweetsController' defined in file [/Users/jbg/Spring-Twitter-Stream/target/classes/com/rawsanj/tweet/controller/JsonTweetsController.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.springframework.social.connect.ConnectionRepository]: No qualifying bean of type [org.springframework.social.connect.ConnectionRepository] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.social.connect.ConnectionRepository] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {} -> [Help 1]

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.