GithubHelp home page GithubHelp logo

fetch-api-project's Introduction

About the project

This is a simple project made to show the data fetched by with the help of api to the user.

Screenshots

Screenshot (388)

Screenshot (389)

Working

This section explains the method used to create the project.

  • The react app consists of two component "NavBar" and "IndividualCards".

  • The NavBar component consists of a button at the right side that fetches the data once clicked by the user.

  • A state variable called "users" stores the data once the data is fetched with the help of axios.

  • After fetching the data the NavBar component uses the map function to loop through all the users that is stored in the variable. During each iteration a new component IndividualCards is called in which the individual user is passed as a prop.

  • In the IndividualCards component the name,email and image url of the user is extracted from the object with the help of destructuring. This data is displayed to the user in frontend.

  • This app also consists of spinner that appears when the data is being fetched from the server.

Built with

  • ReactJs
  • CSS
  • MaterialUI

Getting Started

Installation

Below are some steps for the installation of the app in local system.


1 -> Clone the repo.

  https://github.com/riteshsoni123/fetch-api-project.git

2 ->Change the directory to client.

3 -> Install NPM packages.

  npm install

Start app

To start the app write the following command.

  npm start

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.