rbanos-mv / latin-america-population

Latin America Population is a single page application created with React and Redux that allow users to review Latin America countries population. This webapp uses the World Bank indicators API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latin America Population

Latin America Population is a single page application created with React and Redux that allow users to review Latin America countries population. This webapp uses the World Bank indicators API.

Home page: It shows the list of Latin America and the Caribbean countries. The list includes de Flag, the name and the last known population. Initially, the population is shown as zero, since the API endpoint for the list of countries does not include such value.

When you click anywhere on the country area, it will send you to the Population page. When you come back from the Population page, the country population is updated.

You can filter the list of countries by typing partially the name of the one you are interested.

Population page: The population page, shows the country flag and the name of the country in the top.

Next comes a list of years and the country's population for that year.

To go back to the Home Page, you may tap in the Back button (<).

image

Built With

  • JavaScript-ES6
  • CSS3
  • ReactJS
  • Redux

Live Demo

Getting Started

To get a local copy up and running follow these simple steps:

Prerequisites

Open your terminal and navigate to the folder you would like to save the project.

Setup

Type these commands into the terminal:

git clone https://github.com/rbanos-mv/latin-america-population.git
cd latin-america-population

You will need a .env file before you install and run the project. The .env file contains environment variables needed to deploy the webpage. There is a commented .env.example file you can use as a guide to configure your own. Type the following command into the terminal (or Git Bash, if using Windows) to create your .env file:

cp .env.example .env

Install

Type this command into the terminal:

npm install

Build

Type these commands into the terminal:

npm run build
  • Open build/index.html in your web browser.

Run dev server

Type these commands into the terminal:

npm run start

Run tests

Type this command into the terminal:

npm run test

Deployment

npm run deploy

Authors

👤 Roberto A. Baños Alvarez

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

📝 License

This project is MIT licensed.

About

Latin America Population is a single page application created with React and Redux that allow users to review Latin America countries population. This webapp uses the World Bank indicators API.


Languages

Language:JavaScript 77.5%Language:CSS 18.3%Language:HTML 3.1%Language:Shell 1.0%