Skip to content

This project is a simple Next.js application that displays a list of users and the details of the selected user. The design reference is taken from a Figma design, and data is fetched from a provided API.

Notifications You must be signed in to change notification settings

nrbnayon/Users-List-Client

Repository files navigation

User List and Details Webpage

Live

This project is a simple Next.js application that displays a list of users and the details of the selected user. The design reference is taken from a Figma design, and data is fetched from a provided API.

Table of Contents

Features

  • Display a list of users with their profile pictures and names.
  • Show user details on the right-hand side when a user is selected.
  • Loader/spinner during data fetching.
  • Proper handling of API errors and empty responses.

Tech Stack

Getting Started

Prerequisites

  • Node.js (>=14.0.0)
  • npm or yarn

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/your-project.git
    cd your-project
  2. Install dependencies:

    npm install
    # or
    yarn install
  3. Run the development server:

    npm run dev
    # or
    yarn dev

    Open http://localhost:3000 with your browser to see the result.

API Handling

API calls are made using axios, and data fetching is handled in the useEffect hook in index.js.

Error Handling

  • Loader/spinner is displayed during data fetching.
  • Proper error message is shown if the API call fails.
  • "No data to show" message is displayed if the response is empty.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This project is a simple Next.js application that displays a list of users and the details of the selected user. The design reference is taken from a Figma design, and data is fetched from a provided API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published