{"id":15684068,"url":"https://github.com/jexp/sdn-twitter-boot","last_synced_at":"2025-05-07T15:07:46.549Z","repository":{"id":17157898,"uuid":"19924824","full_name":"jexp/sdn-twitter-boot","owner":"jexp","description":"Spring Boot Application with Spring Data Neo4j REST, SD-REST and Spring Social for Twitter import","archived":false,"fork":false,"pushed_at":"2014-05-19T23:04:08.000Z","size":144,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-07T15:07:39.443Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jexp.png","metadata":{"files":{"readme":"readme.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-19T00:46:10.000Z","updated_at":"2024-04-08T12:28:31.000Z","dependencies_parsed_at":"2022-08-04T16:45:13.715Z","dependency_job_id":null,"html_url":"https://github.com/jexp/sdn-twitter-boot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fsdn-twitter-boot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fsdn-twitter-boot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fsdn-twitter-boot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fsdn-twitter-boot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jexp","download_url":"https://codeload.github.com/jexp/sdn-twitter-boot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252902614,"owners_count":21822261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T17:10:36.989Z","updated_at":"2025-05-07T15:07:46.523Z","avatar_url":"https://github.com/jexp.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"=== Simple Twitter example with Spring Boot with Spring Data Neo4j, SD-REST and Spring Social\n\n=== Installation\n\nMake sure to have a Neo4j Server running, http://neo4j.com/download[download] and start with +bin/neo4j start+.\n\nRun mvn spring-boot:run\n\nThe application will start to import tweets automatically on a scheduled basis, based on a java system property +twitter.search+\n\nIt defaults to: \"#neo4j OR \"graph OR database\" OR \"graph OR databases\" OR graphdb OR graphconnect OR @neoquestions OR @Neo4jDE OR @Neo4jFr OR neotechnology OR springsource OR @SpringData OR pivotal OR @starbuxman OR @mesirii OR @springcentral\"\n\nYou need to have a Twitter Bearer Token for the search, generate one here: https://dev.twitter.com/docs/api/1.1/post/oauth2/token\n\n[source]\n----\n~/Downloads/neo4j-community-2.0.3/bin/neo4j start\nexport TWITTER_BEARER='AAAAA....MkE'\nmvn spring-boot:run [-Dtwitter.search=\"springsource\"]\n----\n\nTo access the Spring Data REST repository-endpoints try:\n\n----\ncurl http://localhost:8080/users\ncurl http://localhost:8080/tweets\ncurl http://localhost:8080/tags\n\n#to see additional search methods on the repository\ncurl http://localhost:8080/users/search/\n{\n  \"_links\" : {\n    \"findByUser\" : {\n      \"href\" : \"http://localhost:8080/users/search/findByUser{?0}\",\n      \"templated\" : true\n    },\n    \"suggestFriends\" : {\n      \"href\" : \"http://localhost:8080/users/search/suggestFriends{?name}\",\n      \"templated\" : true\n    }\n  }\n}\n\ncurl http://localhost:8080/users/search/findByUser?0=starbuxman\n{\n  \"_embedded\" : {\n    \"users\" : [ {\n      \"userId\" : 4324751,\n      \"user\" : \"starbuxman\",\n      \"name\" : \"Josh Long\",\n      \"createdDate\" : null,\n      \"followers\" : 0,\n      \"friends\" : 0,\n      \"url\" : null,\n      \"image\" : null,\n      \"language\" : null,\n      \"_links\" : {\n        \"self\" : {\n          \"href\" : \"http://localhost:8080/users/1202977\"\n        }\n      }\n    } ]\n  }\n}\n\ncurl http://localhost:8080/users/searchsuggestFriends?name=starbuxman\n{\n  \"_embedded\" : {\n    \"users\" : [ ...\n     {\n      \"userId\" : 7596542,\n      \"user\" : \"mesirii\",\n      \"name\" : \"Michael Hunger\",\n      \"createdDate\" : null,\n      \"followers\" : 0,\n      \"friends\" : 0,\n      \"url\" : null,\n      \"image\" : null,\n      \"language\" : null,\n      \"_links\" : {\n        \"self\" : {\n          \"href\" : \"http://localhost:8080/users/1203254\"\n        }\n      }\n    }, {\n      \"userId\" : 22467617,\n      \"user\" : \"neo4j\",\n      \"name\" : \"Neo4j\",\n      \"createdDate\" : null,\n      \"followers\" : 0,\n      \"friends\" : 0,\n      \"url\" : null,\n      \"image\" : null,\n      \"language\" : null,\n      \"_links\" : {\n        \"self\" : {\n          \"href\" : \"http://localhost:8080/users/1203253\"\n        }\n      }\n    } ... ]\n  }\n}\n----\n\n=== Entities:\n\n* Tweet\n* User\n* Tag\n\n=== Relationships\n\n* POSTED\n* TAGGED\n* MENTIONS\n* SOURCE\n\n=== Example Use-Case: Recommend new people to follow\n\n[source,cypher]\n----\nMATCH (me:User {user:{name}})-[:POSTED]-\u003e(tweet)-[:MENTIONS]-\u003e(user) RETURN distinct user\n----\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjexp%2Fsdn-twitter-boot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjexp%2Fsdn-twitter-boot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjexp%2Fsdn-twitter-boot/lists"}