You need to have Golang installed
The project's goal is to generate tweets from Reviews.json and Movies.json, two input JSON files.
Two JSON files in the project include several test scenarios.
- If a review, score, or title is blank, it won't be considered for tweet.
- Ratings are computed using the score input, with 0-10 bracket as 1/2 rating, 10-20 as *, 20-30 as *1/2 and so on.
- Trimmed title string if tweet length exceeds 140. If still length is greater than 140 then also Trimmed review string.
- All length are determined after eliminating white spaces fom beginning and end.
- Create a directory using command: mkdir directoryName
- cd directoryName
- Download 99designs-coding-test.tar.gz and extract it using command tar -xzpf 99designs-coding-test.tar.gz
- cd goplaybook
- Create a directory using command: mkdir directoryName
- cd directoryName
- run https://github.com/nehamittal01/goplaybook.git
- cd goplaybook
- Run below commands inside goplaybook directory
- go build main.go
- go run main.go Movies.json Reviews.json
- Final output will get print in command line