Giter VIP home page Giter VIP logo

designconversiondata's Introduction

DesignConversionData

A stand-alone HTML page to work with the latest Google Chrome browser written in React.js It also have using Jest and Enzyme for the testing the React.js

Installation & usage

System Dependencies & Configuration

To run the website, you'll need:

  • npm, a package manager for the Node.js server platform. Node.js comes with npm installed.

Next, download this directory from GitHub. Open your Node.js command prompt and point to the directory to install the it. Make sure you are connect to network.

After this, run the following commands to run the website.

$ npm install
$ npm start  

Instruction how to use the website

  1. Click the + Create new will initiate a GET request and fetch the person card data from API url : https://reqres.in/api/users?page=1 and show as a list of person card. Each page will 3 person card once.

  2. You can click the < previouse button or > next button to change the pages of the person card list.

  3. You also can type the no of page you want to see directly into the middle textbox field , and click the Get people button to show the data you want to see.

  • When you are in first page, the < previouse button will be hide, otherwise, it will always show and clickable.

  • On the other hand, when next page have no more data to show, > next button will hide also, otherwise, it will always show and clickable.

  • When you enter invalid no on the textbox field, it will show the error message Please enter a valid number

  • When you enter page bigger the the total page, it will also show the error message Page no. cannot less more than the total page :{no of total page}

Dependencies

When you run npm install, it will auto install this dependencies.

Run test

npm test

designconversiondata's People

Contributors

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