Skip to content

The web app fetches dogs' breeds list from an API and renders it on a page. User can type a dog's breed in a search box and get its image.

Notifications You must be signed in to change notification settings

natashaswan/Dogs-Breeds-APIs-Node.js-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dogs-Breeds-APIs-Node.js-project

In this project I "play" with an API, using SASS for the first time and continue developing my Node.js skills. I also used a webpack for this project, though it is a bit too small to see its impact.

Status: complete.


Table of Contents


Description

This web application fetches an API containing data about dog breeds.

About the API

The API allows to fetch a list of dog breeds, an image of a particular dog breed and a random dog's image.

App structure with screenshots

The app has three pages: main, list recognized breeds and make me smile.

  • Main page with a navigation menu has a list of buttons each representing a dog breed. Pressing the button takes user to a separate page which opens an image of the dog breed on the button pressed.
  • List page has a list of all breeds in alphabetical order. No functionality added.
  • Smile page calls the API with a random dog image.

web app

Improvement opportunities and known bugs

  1. More styling can be added.
  2. Images are of a different quality and size. Rendering every image into the same box (50% width) makes some images look pixelated, and some stretch beyond the 100% of the screen height.
  3. Upon refreshing on the image page an API is called again and a new image appears. A button can be added so user can press to get a new image of the same dog breed.

Technologies used:

NPM, Node.js, Express, SASS, API.

Dependencies:

  • Back-end:
    • EJS,
    • HTTPS,
    • SASS,
    • Express.

Installation Requirements

Start with cloning this repo on your local machine:

  $ git clone https://github.com/natashaswan/Dogs-Breeds-APIs-Node.js-project.git
  $ cd PROJECT FOLDER 

To install run:

$ npm install -S myLib

Or if you prefer using Yarn:

$ yarn add --dev myLib

###Usage Serving the app

$ npm start

Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.

Author

Made with ❤️ by Natasha Swan (me)

Special Thanks

A huge thank you to https://dog.ceo/dog-api/ for their straight forward, available and free API.

About

The web app fetches dogs' breeds list from an API and renders it on a page. User can type a dog's breed in a search box and get its image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published