Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nkpe/Dog-Dictionary
Dictionary of Dog breeds (data source : https://dog.ceo/dog-api/)
https://github.com/nkpe/Dog-Dictionary
api html-css http-requests javascript web-components
Last synced: 19 days ago
JSON representation
Dictionary of Dog breeds (data source : https://dog.ceo/dog-api/)
- Host: GitHub
- URL: https://github.com/nkpe/Dog-Dictionary
- Owner: nkpe
- Created: 2022-11-02T10:21:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-28T15:21:06.000Z (almost 2 years ago)
- Last Synced: 2024-07-30T21:02:46.980Z (3 months ago)
- Topics: api, html-css, http-requests, javascript, web-components
- Language: JavaScript
- Homepage:
- Size: 85 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dog-Dictionary
Dictionary of Dog breeds (data source: https://dog.ceo/dog-api/)
## How to run and view it
* GitHub Pages - The website has been deployed to GitHub Pages and can be viewed [here](https://nkpe.github.io/Dog-Dictionary/)
* Run Locally
1. Install node.js using ```npm install http-server -g``` in the command line
2. Inside the Dog-Dictionary folder, run ```run http-server -p 3000``` in the command line
3. To view - in Chrome or Firefox go to `http://localhost:3000/` .
## Testing
* Browser compatibility - DogCard web component does not render in Safari browser. Website works well in Chrome, Firefox and Edge
* Responsiveness - Works well on mobile and desktop. Tablet breakpoint to be implemented
* Initial load time - currently initial load time is not optimised, so can be slow. However, this does mean that the results are loaded quicker when the 'load more' button is clicked.
## Features to implement* Safari compatibility:
* to ensure the web component renders.
* Center images:
* as each image is different in size, not all dogs may be showing. Centred images will have a higher chance of showing the dog.
* Dog image popup:
* on hover &/or click the full dog image pops up over the page, with button to close it.
* Format breed names:
* capitalise each breed and split name if necessary.
* Random button
* generate one dog breed/dog card
* Different images:
* either a button/refresh can call another set of images.
* New pages:
* Information on each breed.## Credits
### Assets* Favicon & Logo - [favicon.io](https://favicon.io/emoji-favicons/dog-face/)
* API data - [Dog API](https://dog.ceo/dog-api/). Source of breed information and images.