Giter VIP home page Giter VIP logo

rest-countries's Introduction

Countries Info 🎉

GitHub issues GitHub forks GitHub stars DEPENDENCIES Known Vulnerabilities forthebadge

Shows Info of the countries in a specific region and specific country. Using the [Restcountries API](https://restcountries.eu/) .

Problem Statement

Check out the following API documentation - https://restcountries.eu/ This Public API documentation gives you detailed information about various countries. As a solution to this problem statement, you are supposed to create an Angular application with following views -

  1. All regions view - A beautiful looking view displaying all the regions in the world(you may use free images/icon available on web). On clicking one of the regions, All Countries view should open
  2. All countries view - This should display all the countries of the selected region. There should be option to go back to previous view as well. This view should should display countries in format of bootstrap cards with country flags (image link available with api) as the image of the card and should display only the important details of that particular country like Name, Capital, timezone, Currency, Subregions etc. (you may choose to include more details as long as the view doesn’t become too big). On clicking on a particular country in country view, a detailed view of that country should open.
  3. Single Country view - This view should use the flag of the country as cover image and display all the information about the countries in different and well differentiated sections of the page.
  4. Currency Filter - On clicking on currency name in any of the above view, all countries view should open again but this time with a currency filter applied. I.e it will display that currency filter has been applied, show the selected currency and will should the country list which have the same currency(irrespective of the region)
  5. Language Filter - On clicking a particular language in any of the above views, All countries view should open again, but this time with a language filter applied. I.e it will display the countries which have the selected language (irrespective of the region).

Installation :

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build 🔧

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Description

The app has 3 views such as All region view , All countries view and Single Country view.

All region view :

The All region view is the homepage and it contains the option to select the regions. Clicking this region will navigate to the All countries view with respective region .

All countries view :

The all countries view has list of all countries in the selected region. This view displays countries in format of bootstrap cards with country flags as the image of the card and displays only the important details of that particular country like Name, Capital, timezone,Currency, Subregions etc. On clicking on a particular country, a detailed view of that country is opened.

Single country view :

This view uses the flag of the country as cover image and display all the information about the countries in different and well differentiated sections of the page.

Options :

Currency Filter : On clicking on currency name in any of the above view, all countries view is opened again but this time with a currency filter applied. I.e it will display that currency filter has been applied, show the selected currency and will should the country list which have the same currency (irrespective of the region). Language Filter - On clicking a particular language in any of the above views, All countries view will open again, but this time with a language filter applied. I.e it will display the countries which have the selected language (irrespective of the region).

All countries view has the option to search for the country with its name and sort the list with timezone, language, subregion.

Service Workers are used for offline compatibility 🔥 .

TODO

  • Add Service Worker

For any other features rise an issue .

rest-countries's People

Contributors

dependabot[bot] avatar renovate-bot avatar vivek1996 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

nelsonurban

rest-countries's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

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.