Skip to content

nilva-challenge/React-CountyMatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

In name of Allah

Nilva React Code Challange

Introduction

we want you to design and implement a simple single web page app which will use the blow public API to request and fetch some data and do the specified tasks below.

https://travelbriefing.org/api

Tasks

  • fetch a list of 10 random, unique countries from the list of countries in the endpoint below. e.g. Canada, USA, Japan, etc.
https://travelbriefing.org/countries.json

each country will have its own endpoint. e.g.:

https://travelbriefing.org/Netherlands?format=json

this response will be an object with a key of neighbors

check the 10 countries to see which countries are mutual neighbors. this means these countries have each other in their neighbors field. e.g.:

{name: 'Canada', neighbors: [{name: 'USA', ...},...]}

{name: 'USA', neighbors: [{name: 'Canada',...},...]}

are mutual neighbors.

  • feel free to display the mutual neighbors in any way that makes sense to you. Note: if you find that Canada and USA are mutual neighbors, you should only display the pair once.
  • if none of the chosen countries had no mutual neighbors, simply display a message in a desired way and sat that there are no mutual neighbors in the chosen countries then please display the selected countries as well.
  • fork this repository, develop your code, and push it to your forked branch. when you think your code is ready, simply just raise a pull request here.

Expectations

  • a clean structure of codebase and components
  • clean and readable code practice
  • ability to layout pages correctly
  • responsive and simple design
  • well and optimized API calls

Notes

  • please write your app in ReactJS, no backend necessary.
  • please do not use any libraries to select the random countries or find neighbors.
  • feel free to use any boilerplate to quickly set up the app. eg: CRA
  • don't hesitate to take your time and review others written codes, and by the way contact us for more information and help, we're reachable on scheduled time.
  • it would be better to write a simple and brief README.md file.

Suggested techs

take your time and make a review on these techs. we would gladly provide you with the required information and useful documents about each one of ordered preferred techs listed below.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published