Code Monkey home page Code Monkey logo

childish-react-app's Introduction

This is a small frontend React application using the https://jsonplaceholder.typicode.com API. This project was bootstrapped with Create React App and Typescript, by running npx create-react-app my-app --template typescript. Additionally, it uses the following react libraries:

  1. Axios - Promise based HTTP client for the browser and node.js
  2. React Router DOM - Enables dynamic routing in a web app
  3. MUI - Prebuilt UI components used to create the grid system np

How to run the application

Clone or download this repository, then run npm install and then npm run start.

The application has 2 pages:

Entry List Page:

Image One: Entry List Page

Fetches a list of entries provided by this url: https://jsonplaceholder.typicode.com/users.

The following properties are displayed on the user list page:

  1. username
  2. email
  3. name
  4. link to website.

When the user clicks on the fetched entry (the card or the table row), the user gets navigated to the entry page.

Entry Details Page:

Image Two: Entry Details Page

The page gets displayed when the user has clicked on the entry he/she wants to visit.

Fetches the details from the endpoint https://jsonplaceholder.typicode.com/users/{id}, where the {id} is the entry id that has been selected.

The page displays the following properties:

  1. name
  2. username
  3. email
  4. address city
  5. phone
  6. website
  7. company name.

When the user clicks on the website that has been displayed he/she is navigated to the website in a new tab.

childish-react-app's People

Contributors

yonkov 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.