Coder Social home page Coder Social logo

kshitijtiwari0 / digital-jalebi Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 61 KB

A web application that fetches user data from a provided API endpoint and displays it in a table format.It will implement search functionality using different API endpoints.

License: GNU General Public License v3.0

JavaScript 67.59% HTML 3.69% CSS 28.71%

digital-jalebi's Introduction

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Getting Started

  1. Prerequisites:

    • Node.js and npm (or yarn): Make sure you have Node.js (version 14.18+ or 16+) and npm (or your preferred package manager like yarn) installed on your system. You can check by running these commands in your terminal:
      node -v
      npm -v 
  2. Clone the Repository:

    git clone https://your-repository-url.git
    cd your-project-name
  3. Install Dependencies:

    npm install   # or 'yarn install' if using yarn
  4. Start the Development Server:

    npm run dev  # or 'yarn dev'

    This will start Vite's development server. Open your browser and navigate to http://localhost:5173/ (or the port Vite specifies) to see your application.

Usage

  • Search: Type a user's first or last name into the search bar and press "Search" to filter the results.
  • View Details: Click the "View Details" button on a user card to see more information about that user. Click it again to hide the details.

Project Structure

  • index.html: The main entry point of your application.
  • App.jsx: The root React component that handles fetching user data and rendering the UI.
  • components/:
    • UserData.jsx: This component renders individual user cards and manages the display of detailed user information.
  • app.css: The main stylesheet for the entire application.

Additional Notes

  • This project uses the dummyjson.com API to fetch sample user data.
  • If you want to customize the UI or add features, feel free to modify the code.
  • For production builds, run npm run build (or yarn build).

Troubleshooting:

  • Port Conflicts: If the default port (5173) is already in use, Vite will automatically choose another available port. Check your terminal for the actual URL to use.
  • Dependency Issues: If you have trouble installing dependencies, make sure your Node.js and npm versions are up-to-date. You can try deleting the node_modules folder and running npm install again.

digital-jalebi's People

Contributors

kshitijtiwari0 avatar

Watchers

 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.