GithubHelp home page GithubHelp logo

abc-frontend-test's Introduction

Frontend Coding Exercise

Summary

Implement an auto-complete field that uses suburb information from postcodeapi.com.au to suggest suburb names and allow the user to make a suggestion. This design is similar to the input seen on https://iview.abc.net.au or https://google.com.

Scope

This exercise is intended to explore you understanding of HTML, CSS and JavaScript. The provided React structure is provided as a starting point, you are encouraged to change or remove it as you see fit.

You do not have to complete all the requirements, but we encourage you to make an attempt at addressing all three areas, rather than submitting a fully fleshed-out solution to just one. You may use ARCHITECTURE.md to detail any solutions that would take too long to implement in code.

Requirements

1. Layout and CSS:

  • Use the provided <Input />, <Button /> and <ResultsList /> as well as your own markup and CSS to render a layout similar to the image below.
  • The label, input and button should be horizontally aligned.
  • The results should be displayed immediately below the input.

2. Interactivity:

  • When typing a suburb name into the input the result list show suggestions provided by the API.
  • Show only results that start with the search term. The input "Syd" should match "Sydenham and "Sydney South", but not "The University Of Sydney" or "Aldersyde".
  • Clicking a suggestion should populate the input with the full name of the suburb.
  • Clicking the button should show an alert informing the user of their most recent suburb selection.

3. Accessibility:

  • Implement, or document in ARCHITECTURE.md, some enhancements that would improve accessibility.

Sample image

Getting Started

DO NOT fork this repo. Please locally clone and submit the result manually.

git clone https://github.com/abcaustralia/frontend-coding-exercise.git
cd frontend-coding-exercise
npm install / yarn
npm run start / yarn start

This project uses data provided by postcodeapi.com.au. Due to CORS limitations npm run start will start a local proxy server on http://localhost:8010/proxy.

abc-frontend-test's People

Contributors

keshan123 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.