Create a Laravel web application to accomplish following parts:
- Start => User visits your script page.
- User will be asked to connect using his Twitter account using Twitter Auth.
- After authentication, your script will pull latest 10 tweets from his “home” timeline.
- 10 tweets will be displayed using a jQuery-slideshow.
- Below jQuery-slideshow (in step#4 from part-1), display a list 10 followers (you can take any 10 random followers).
- Also, display a search followers box. Add auto-suggest support. That means as soon as user starts typing, his followers will start showing up.
- When user will click on a follower name, 10 tweets from that follower’s user-timeline will be displayed in same jQuery-slider, without page refresh (use AJAX).
- There will be an Email button above the jQuery Slider to email all the tweets for logged in user.
- Clicking on that should open a popup that will ask the user’s email address.
- Clicking on Go after entering the email address should lead to the user receiving all his tweets in PDF format by mail.
-
There will be a download button to download all followers of any user(we will input user @handler).
-
Download can be performed in one of the following formats i.e. You choose the format you want. It would act as an advantage if you give the option to download the tweets in all the following formats: csv, xls, google-spreadhseet, pdf, xml and json formats.
-
For Google-spreadsheet export feature, your app-user must have Google account. Your app should ask for permission to create spreadsheet on user’s Google-Drive.
-
Once user clicks download button (after choosing option) all followers of specified user should be downloaded. Hint: You can implement this as background job. Come up with some creative solutions.
git clone https://github.com/pcsaini/rtCamp-twitter-challenge.git
cd rtCamp-twitter-challenge
composer install
php artisan env:gen
cd public
bower install
php artisan serve
OR
php -S localhost:8080 -t public
Install the package using composer:
composer require thujohn/twitter
Install the package using composer:
composer require mathiasgrimm/laravel-dot-env-gen:dev-master
Install the package using composer:
composer require google/apiclient:^2.0
Install the package using composer:
composer require "maatwebsite/excel:~2.1.0"