Giter Club home page Giter Club logo

countries-and-states-database-app-in-react's Introduction

Flowbite Countries - Database for countries, cities and states

Countries_Logo

Tech Stack

TailwindCSS React HTML5 CSS3

Flowbite Countries displays a huge list of states and cities from different countries around the world.

Features

  • Huge database from the API provides data for 220+ countries, 70000 + cities and 5000 + states
  • Flowbite UI is used for attractive loaders, navbars and more.
  • Tailwind CSS is used for utility classes within the app.
  • Search filtering added.

Installation Options

Just like you install majority of the Node powered front-end apps, three magic commands for you to run the app.

  1. Install with npm

    • $ npm install
    • $ npm start
    • $ npm build
  2. Install through Docker

    • $ sudo docker build . --tag=react-countries
    • $ sudo docker run -d -p 80:80 react-countries

Screenshots

Country detail page which displays all the states of the given country.

Countries_Logo

State detail page for a given state and country would display all the cities located in the state and available in the database.

States_Logo

  1. Get API Key

    • Go to this website - https://countrystatecity.in/
      • Request for an API key, you should have it in your mail in around 2 days.
    • Read the docs
      • Read the docs to get the grasp of API end-points and response received.
    • Use it in your app
      • Use it in your app through the env file. Append this in request headers while making API calls.

How to Contribute

  1. Clone repo and create a new branch: $ git checkout https://github.com/Apfirebolt/countries-and-states-database-app-in-React -b name_for_new_branch.
  2. Make changes and test
  3. Submit Pull Request with comprehensive description of changes

Time Taken

The project took around 3 and half hours to complete from designing to analyzing API docs, creating UI and integrating APIs.

Acknowledgements

  • Darshan Gada for creating and maintaining this awesome API.

countries-and-states-database-app-in-react's People

Contributors

apfirebolt avatar

Watchers

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