This is a simple project, which simulate the real life situations. Here implemented basic CRUD operations with contacts which have a name, email and phone. I was working with the components, jsx, props, state, context api, forms, react router, lifecycle of components, http requests, composition approach etc.
For simulate db i was using this site https://jsonplaceholder.typicode.com/ which provide some json data. Thats why, if you will change, add or delete contact, after reload the page, they return back...)
- In the
master
branch you can see simple implementation crud operations; For managing of state i've used context api; - In the
redux-version
branch you can see different way for managing state of app by redux where i'm using standart approach store -> view -> dispatch -> action -> reducer -> store;
- you need to install nodejs and npm: https://nodejs.org/en/ download and install
- clone the project and go to the root of the project folder
- run
npm install
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!