Address Book

An address book application that fetches random users from the randomuser.me API by the selected country.

Key Features

  • Fetches 50 random users initially from the randomuser.me API by the selected country.
  • Modal for detailed user information.
  • Routing for separate setting page.
  • Saving selected nationality to localStorage for future usages.
  • Search functionality for the users with React Context.
  • Infinite Scroll.

Run Locally

  1. Clone the project
git clone https://github.com/buraksaraloglu/address-book.git
  1. Go to the project directory
cd address-book
  1. Install dependencies
yarn
  1. Start the server
yarn dev
  1. All Done šŸ„³

Demo

Once the build completes, your app is live! Open http://localhost:3000 with your browser to see the result.

Changes to components should hot-reload in the browser.

Deployment

To deploy run the following command:

yarn build

The build will be placed in the build directory.

If you want to deploy to a different directory, you can specify the directory changing the path in the webpack config.

Scripts

  • Start dev server using yarn dev.
  • Build and bundling your resources for production yarn build.
  • Deploy it to GitHub pages using yarn deploy
  • yarn type-check validate code using TypeScript compiler.
  • yarn lint and yarn format to run ESLint and Prettier for all files in the src directory.
  • yarn commit run commitizen. Alternative