Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jgardezi/flickr-search
Flickr API example API, allow a user to search for photos
https://github.com/jgardezi/flickr-search
flickr-api flickr-search laravel laravel54 rest-api search travis-ci unittest
Last synced: 4 days ago
JSON representation
Flickr API example API, allow a user to search for photos
- Host: GitHub
- URL: https://github.com/jgardezi/flickr-search
- Owner: jgardezi
- Created: 2017-08-29T16:25:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-31T09:05:03.000Z (about 7 years ago)
- Last Synced: 2024-10-11T10:42:06.318Z (about 1 month ago)
- Topics: flickr-api, flickr-search, laravel, laravel54, rest-api, search, travis-ci, unittest
- Language: PHP
- Size: 488 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Flickr Photo Search
Simple Flickr Search API allows users to search for photos by **tags** and allows users to go to full details of photos.
The project is structured using repository pattern. It provide a layer of abstraction over the datasource/database. Instead of
directly interacting with the Flickr API's, the controllers interact with a repository class that encapsulates all the
API layer interactions.The advantage of this approach is that controller is no longer directly coupled to the model layer. For small projects
lot of unnecessary boilerplate has been added. However, for larger projects with more complexity and changing requirements,
this layer of abstraction is incredibly useful.- Easily migrate to a different ORM or database layer technology.
- Easily "mock" the repository class in unit tests.**Flickr API's**
- [flickr.photos.search](https://www.flickr.com/services/api/flickr.photos.search.html)
- [flickr.photos.getInfo](https://www.flickr.com/services/api/flickr.photos.getInfo.html)### Requirements
- PHP >= 7
- MCrypt PHP Extension
- Composer
- Laravel Homestead
- Travis CI - For Code Quality, Consistency, Adherence to standards and Automated Tests## Setup
- Clone this repository
- In the project directory issue `composer install` command
- Install node packages `npm install`
- Build JS and CSS using `npm run dev`
- To see on web browser `php artisan serve` or use Homestead## Application Testing/Demo
- Using web browser path: [demo link](http://flickr-search.ap-southeast-2.elasticbeanstalk.com/flickr)
- Testing covers basic Unit and Functional Testing. If using Homestead run `phpunit` in the project directory.## Future improvement
- Dockers
- Micro-services (use of Lumen framework instead Laravel, more generic)## TODO
- Better UI implementation
- Expose search API's (optional)## References
- The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).
- [jeroen-g/flickr](https://github.com/Jeroen-G/Flickr): Flickr API integration
- [laravelcollective/html](https://laravelcollective.com/docs/5.4/html): Laravel HTML forms
- [Repository Pattern](https://bosnadev.com/2015/03/07/using-repository-pattern-in-laravel-5/)