Skip to content

RahatHameed/fashionette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TvMaze Search API

Installation

1. First, clone this repository:

$ git clone https://github.com/RahatHameed/fashionette.git

2. Kindly add following entry in your /etc/hosts file:

127.0.0.1 json-api.local

3. Create docker containers:

$ docker-compose up -d

4. Confirm three running containers for db, php-fpm, nginx:

$ docker-compose ps 

5. Install composer packages:

$ docker-compose run php composer install 

6. Create Database schema:

$ docker-compose run php php artisan migrate 

7. Run testcases:

$ docker-compose run php vendor/bin/phpunit

8. Get Api Call:

http://json-api.local/?q={show_title}

9. Possible Future Enhancement:

  • We can add Authentication in future if required.
  • We can allow passing more parameters to filter our response.
  • We can extend our code to integrate more Apis like TvMaze
  • We can use other caching tools like redis or memcache.

Application logs can be found on following locations:

  logs/nginx/
  logs/application/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published