Skip to content

An App that displays information about different dog breeds for a technical test using Typrescript/Angular Framework

Notifications You must be signed in to change notification settings

Robrowno/dog-breeds-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dog-breeds-angular

An Angular App/site that displays information about different dog breeds for a technical test using Typrescript/Angular Framework

I have continued with the project post-assesment in order to get a bit more familiar with the Angular framework.

Current look of the site:

Current look of the site

There is now a working details page included in the latest version of the site - the fix for early troubles is detailed below.

Details Page

I have included some basic filtering functionality thanks to some help from the Angular docs:

Filtering functionality

I have begun working on the community page which will have a sign-up form for newsletters/emails etc - not functional yet, just static:

Community Page

Early version of the site:

Site Screenshot

Objectives:

Create a site centered around information around different dog breeds

Key Steps:

  1. Set up IDE/Workspace in VSCode
  2. Ensure all dependencies were installed with lastest stable versions
  3. Read through the Angular documentation to walkthrough how to create an Angular App in VSCode

JSON Server set-up:

I moved the dog breeds into a db.json file as per an Angular Tutorial and as such there are some steps you need to take to run the JSON server:

  1. When you have created your json file, enter this command into your command line: npm install -g json-server
  2. Populate the file with the json data that you want to include.
  3. Test that it is working by changing directory in to the root where your db.json file should be located and entering: json-server --watch db.json
  4. In your web browser, navigate to the http://localhost:3000/< name of you json object here > and confirm that the response includes the data stored in db.json.
  5. You will need to now convert the rest of your project to use this JSON server to host your data and render it on your site.

Issues:

  • I was not able to install the Angular CLI at first due to permissions issues and errors showing in the terminal. I found a helpful fix online for this, and by inputting this command I had access and full permissions granted to use the Angular CLI:

    • Angular CLI issue
  • I had some issues getting the details page to work properly. I started using the code companion github copilot since the assesment was submitted and it helped me to resolve the issues. See the old code commented out and the fix below: -Details page fix

Credits:

  • The Angular Docs and Tutorials were instrumental in helping me to work with a framework that was totally unfamiliar to me up to this point.
  • I found the solution to the Angular CLI issue detailed above from stackoverflow - I will include a link to this page later when I can find it.
  • Github Copilot code companion for helping to resolve the details page issues!

About

An App that displays information about different dog breeds for a technical test using Typrescript/Angular Framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published