Display a list of countries and their corresponding country code.
- clone this repository to your local machine.
- run
npm install
in the root directory. - run
npm start
in the root directory.
Run npm run build
in the root directory.
- Create a .env file in the root directory of the project.
- Add the PUBLIC_URL variable to the .env file with your GitHub Pages URL. i.e. PUBLIC_URL=https://ggangix.github.io/countries-client
- Add the REACT_APP_API_URL variable to the .env file with your API URL. i.e. REACT_APP_API_URL=https://countries-api.herokuapp.com
- Run
npm run build-deploy
to build the project and deploy to GitHub Pages.
Planned features:
- Add multipage results
- Handle errors with a isolate error modal
- Improve the UI
- Loading Spinner
- Look for some inpiration for the UI
- Add test cases