https://github.com/benslabbert/twitter-feed
https://github.com/benslabbert/twitter-feed
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/benslabbert/twitter-feed
- Owner: BenSlabbert
- Created: 2018-07-16T18:55:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-16T18:56:30.000Z (almost 8 years ago)
- Last Synced: 2025-04-06T10:17:10.455Z (about 1 year ago)
- Language: Java
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter Feed
## Requirements
* Java 1.8 JDK
## Build
The project includes the Maven Wrapper JAR, to build:
`./mvnw clean compile`
## Test
`./mvnw clean test`
## Package
This project packages into a single JAR file:
`./mvnw clean package`
## Example Demo
`java -jar target/twitter-feed.jar ./src/test/resources/users_1.txt ./src/test/resources/tweets_1.txt`
`java -jar target/twitter-feed.jar ./src/test/resources/users_2.txt ./src/test/resources/tweets_2.txt`
`java -jar target/twitter-feed.jar ./src/test/resources/users_3.txt ./src/test/resources/tweets_3.txt`
## Assumptions
1.) `users.txt`
If the same user if defined more than once, the last entry will replace the earlier entry.
For example:
Ward follows Alan
Ward follows Martin
This will result in `Ward` following `Martin` and **not** `Alan`.
2.) `users.txt`
The separating string is as follows: ` follows `
Example of an acceptable entry:
`Ward follows Martin, Alan`
Example of an unacceptable entry:
`Ward follow Martin, Alan`
3.) `tweets.txt`
If the message of the tweet is longer than 140 characters, an exception will be thrown
and the program will stop executing.
4.) `tweets.txt`
the tweeter and the tweet message must be split by 2 characters:
`> `
A `>` and a ` ` (space) must be present.