Giter VIP home page Giter VIP logo

peopleapp's Introduction

PeopleApp

Environment:

  • react
  • redux
  • react-hook-form
  • css flex

SPA should have two tabs.

First tab "Personal Info" contains

  1. two text inputs:
  • first name
  • last name
  1. one selector:
  • occupation
  1. button "Save"

Second tab "Skills" contains:

  1. one text input:
  • skill
  1. button "+" (just near first input) (button "-" near second and other inputs)
  2. button "Save"

Before rendering tabs need to get list of occupations (in real application for it back end API is used but for test app use predefined list of occupations) and save it Redux store. Response must have following structure: [{ code: "PRESIDENT", name: "President" }, { code: "PHILANTHROPIST", name: "Bill Gates" }, { code: "ASTRONAUT", name: "Astronaut" }, { code: "JOCKEY", name: "Jockey" }]

Render tabs when data will be in the store. By default "Personal Info" tab is chosen.

  • Use occupations from Redux store to add options in selector.
  • First Name and Last Name are required (validation is needed) On click on "Save" button validate required fields and show errors if needed. Otherwise emulate sending request to server. Request must have following structure: { firstName: , lastName: , occupation: } Print it on page (under "Save" button) or in console.

On tab "Skills" should be possible to add any count of your skills. By clicking on "+" button need to add one more text input with "-" button. On click on "-" button need to remove input and button. New input field must be added in the end of the list. On click on "Save" button emulate sending data to server. Request must have following structure: ["Skill1", "Skill2", "Skill3"...] Skip empty skills before sending data. Print request on page (under "Save" button) or in console.

Use CSS flex to position elements on the page.

Cover functionality with unit tests.

peopleapp's People

Watchers

James Cloos avatar Jan Švanda 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.