From 76cb6c2022c3e23524b053f9ffab66edf9a6d0b5 Mon Sep 17 00:00:00 2001 From: Michael Winsauer Date: Sat, 3 Nov 2018 06:13:44 +0100 Subject: [PATCH] Initial commit of TwitterService --- service-twitter/.gitignore | 145 ++++++++++++++++++ service-twitter/pom.xml | 72 +++++++++ service-twitter/service-twitter.iml | 94 ++++++++++++ .../TwitterServiceApplication.java | 13 ++ 4 files changed, 324 insertions(+) create mode 100644 service-twitter/.gitignore create mode 100644 service-twitter/pom.xml create mode 100644 service-twitter/service-twitter.iml create mode 100644 service-twitter/src/main/java/at/aic18/g6t4/servicetwitter/TwitterServiceApplication.java diff --git a/service-twitter/.gitignore b/service-twitter/.gitignore new file mode 100644 index 0000000..a938e1d --- /dev/null +++ b/service-twitter/.gitignore @@ -0,0 +1,145 @@ +# Created by .ignore support plugin (hsz.mobi) + + +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/modules.xml +# .idea/*.iml +# .idea/modules + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + + +### Maven template +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +.mvn/wrapper/maven-wrapper.jar + + +### Linux template +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + + +### Java template +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + + +### Windows template +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk diff --git a/service-twitter/pom.xml b/service-twitter/pom.xml new file mode 100644 index 0000000..0e6b179 --- /dev/null +++ b/service-twitter/pom.xml @@ -0,0 +1,72 @@ + + + 4.0.0 + + at.aic18.g6t4 + service-twitter + 0.0.1-SNAPSHOT + jar + + Twitter Service + Twitter Service for Docker-based Service Composition + + + org.springframework.boot + spring-boot-starter-parent + 2.1.0.RELEASE + + + + + UTF-8 + UTF-8 + 11 + + + + + org.springframework.boot + spring-boot-starter-actuator + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-devtools + runtime + + + org.springframework.boot + spring-boot-configuration-processor + true + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + org.twitter4j + twitter4j-core + 4.0.7 + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/service-twitter/service-twitter.iml b/service-twitter/service-twitter.iml new file mode 100644 index 0000000..2ffb41d --- /dev/null +++ b/service-twitter/service-twitter.iml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/service-twitter/src/main/java/at/aic18/g6t4/servicetwitter/TwitterServiceApplication.java b/service-twitter/src/main/java/at/aic18/g6t4/servicetwitter/TwitterServiceApplication.java new file mode 100644 index 0000000..2ae91ab --- /dev/null +++ b/service-twitter/src/main/java/at/aic18/g6t4/servicetwitter/TwitterServiceApplication.java @@ -0,0 +1,13 @@ +package at.aic18.g6t4.servicetwitter; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class TwitterServiceApplication { + + public static void main(String[] args) { + SpringApplication.run(TwitterServiceApplication.class, args); + } + +} -- 2.43.0