Giter Club home page Giter Club logo

react-country-finder-app's Introduction

Country Finder App

Requirements

www.restcountries.com Get information about countries via a RESTful API.

Libraries (required): React js, Redux, Redux-saga

Instructions: (demo - ws application).

  1. Write a promise which should emit an event message every 15 seconds (similar to a message from a web socket), the output should be countries (from this API) that start with the same letter in the alphabetical order (a-z)..

  2. Write a redux-saga eventChannel function for the event message and pass the message to redux store.

  3. Store the data (validation: check if the data already exists in the state).

  4. Create a sidebar component:

    4.1. Alphabetical sidebar navigation (only for countries that exist in the list).

    4.2. Clicking on a letter should display all the countries that start with the same letter in a list next to the sidebar.

    4.3. Advantage: add search country input.

  5. Create a list component:

    5.1. Clicking on the country name from the list should display the country’s details in the “Country Details” component (detailed below).

  6. Create a “Country Details” component:

    6.1. Create a title, use Country.name.

    6.2. Create the below view :

    |-----------------------------------|
    | Capital    | Country.capital      |
    | Population | Country.population   |
    | alpha2Code | Country.alpha2Code   |
    | Flag       | Country.flag (image) |
    |-----------------------------------|
    
  7. Place a “back” button in the top corner (right || left) show the button when it is possible to go back.

● Use CSS / SCSS / styled-component, design it yourself. (Advantage: add  media queries).

● Use Modern JS syntax (Advantage: TS).

● Use saga, function generators.

● Use github / gitlab / other

Screenshots

animated gif

Tech/framework used

Installation

Running Locally

git, npm and node softwares should be installed before moving on

git clone https://github.com/dimakol/react-country-finder-app.git
cd react-country-finder-app
npm install
npm run dev

Building for production

npm run build

Deployed to Github pages

https://dimakol.github.io/react-country-finder-app/

License

(The MIT License)

Copyright © 2024 Dima Kolyas

react-country-finder-app's People

Contributors

dimakol avatar

Stargazers

Roman 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.