- Book Store is a website that allows you to
- Display a list of books,
- Add a book,
- Remove a selected book.
Bookstore | ||
---|---|---|
- Understand the concept of state management.
- Use store, actions and reducers in React.
- Connect React and Redux.
- Understand the concept of state management.
- Use store, actions and reducers in React.
- Connect React and Redux.
- Understand the concept of state management.
- Use store, actions and reducers in React.
- Connect React and Redux.
- Connect an existing API via Redux and use the data to - display something in a UI.
- React
- Redux
- To get the content of this project locally you need to run this command in your terminal:
$ https://github.com/BenMukebo/bookstore.git
$ cd bookstore
- After cloning the project you need to run this command
$ npm run start
- Initialise React app.
$ npx create-react-app bookstore
- Add React Redux.
$ npm install react-redux
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
- Install react-icons
$ npm install react-icons --save # run this command in your project directory:
- Setup React Router
$ npm install react-router-dom
To use the Router component provided to wrap your components and associate them with a path.
- To configuring the Redux Store and importing the necessary methods from Redux
$ npm i --save redux-logger
- Generating random ids
$ npm i uuid
- Redux Toolkit
If you're using the basic Redux createStore API and need to set this up manually, first add the redux-thunk package:
$ npm install redux-thunk
- For tracking the linter errors in CSS file run:
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
npx stylelint "\*_/_.{css,scss}"
- And For tracking the linter errors in JavaScript file run:
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
npx eslint .
- Use
npm run build
to run the app in live server
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
npm run build
fails to minify
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
👤 Ben Mukebo
- GitHub: @BenMukebo
- Twitter @BenMukebo
- LinkedIn BenMukebo
Feel free to check the issues page
Give a ⭐ if you like this project! ❤️❤️❤️
- Thanks to everyone who will get time to check this code especially to code reviewers.
This project is MIT licensed.