Code Monkey home page Code Monkey logo

goit-react-hw-07-phonebook's Introduction

goit-react-hw-07-phonebook

Built with Vite and deployed via GitHub Actions

<<<<< Phonebook - code refactoring to add backend using mockAPI.io >>>>>

Contact book Performed refactoring of the Contact Book application code. Removed the code responsible for storing and reading contacts from the local storage, and add communication with the backend for storing contacts.

Backend Created personal backend for development with the UI service mockapi.io. Created a resource contacts to get handpoint /contacts. Used resource constructor and described the contact object following the documentation.

State Form Added the load and error indicator handling to the Redux state. To do this, changed the state form:

{ contacts: { items: [], isLoading: false, error: null }, filter: "" }

Operations Used createAsyncThunk to declare asynchronous action generators and make HTTP requests. Processed actions and changed data in Redux state with createSlice.

Declared the following operations:

fetchContacts - get an array of contacts (GET method) by GET request. The basic type of action "contacts/fetchAll". addContact - add contact (POST method). Basic type of action "contacts/addContact". deleteContact - deletes a contact (DELETE method). Basic type of action "contacts/deleteContact".

goit-react-hw-07-phonebook's People

Contributors

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