An address book application that fetches random users from the randomuser.me API by the selected country.
- 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.
- Clone the project
git clone https://github.com/buraksaraloglu/address-book.git
- Go to the project directory
cd address-book
- Install dependencies
yarn
- Start the server
yarn dev
- All Done š„³
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.
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.
- 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
andyarn format
to run ESLint and Prettier for all files in thesrc
directory.yarn commit
run commitizen. Alternative