Giter Site home page Giter Site logo

countries's Introduction

Search Countries

Build a countries search page

See demo app

Setup

Use this template for this deliverable.

Use the information below to guide you:

  • Finish Steps
  • Data Model
  • App Requirements
  • Work Incrementally
  • Rubric

Finish Steps

Part A

Load and display basic country data:

  • getCountries service call in fetch-utils.js
  • Import, load event, findCountries, displayCountries in app.js

Part B

Populate continents dropdown:

  • getContinents service call in fetch-utils.js
  • Import, load event, displayContinentOptions

Part C

Search Countries:

  • Add query logic in getCountries in fetch-utils.js
  • Form event, findCountries in app.js

Part D

Show Counts:

  • Add query logic in getCountries in fetch-utils.js
  • findCountries, displayNotifications in app.js

Data Model

Here is the model for the countries table:

data model

In addition to the table, there is a view you can use to get attributes for dropdown lists:

Attribute View name Object structure
continent country_continents { name: 'North America' }

App Requirements

Present a search form to the user and shows a list of up to the first 100 countries that match the search.

Search on:

Attribute Search
name .ilike('name', `%${name}%`)
continent .eq('continent', continent)

Work Incrementally

Build out your project step by step, this is not an exercise in changing variable names!

Rubric

The following is required for your assignment to be graded:

  • PR open from dev to main
  • PR Passes CI (lint + tests)
  • PR preview on netlify
Commits with working... 10
Part A: Display countries 3
Part B: Populate continent dropdown 2
Part C: Search 3
Part D: Display Counts 2

countries's People

Contributors

lexus-banton 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.