Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

5 watching

Forks

Latest commit

 

History

259 Commits

Folders and files

Repository files navigation

2019-top-cat

A small web app that will show you pictures of cats!

API scrape

APIScrape/scrape.php

A command-line utility for creating the database for the Top Cat app.

  • Makes API requests to get:
    • A list of cat breeds
    • Image URLs for cats from each breed

To use: $ php scrape.php

DB class

Utilities/DB.php

  • DB class contains a PDO that connects to the database


SQL to generate DB

ref/cats_2019-09-16-database-design.sql

  • Contains query to generate cat database for the app.
  • The database contains two tables - breed, img

Tests

To run tests use PHPUnit.

This is included as a development dependency. Run $ composer install to make sure you have all of the development dependencies in your project.

Test files are found alongside the files they test, so run $ vendor/bin/phpunit src to catch them all.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages