Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.83 KB

README.md

File metadata and controls

65 lines (45 loc) · 1.83 KB

Carty

Carty is a simple React + Redux Toolkit project. It presents users with a list of products that they can add to the cart and then affect quantities and cart contents.

To keep it simple, it uses a mock object 'database' as an initial state for the app and it doesn't have any checkout behavior.

Check it out

Live demo

Head to carty.vercel.app to play around with the latest production deployment.

See the code

Explore the code here or on your machine.

Get the repo

Clone the code:

git clone https://github.com/nosthrillz/carty.git
cd carty

Install and run

Make sure you have npm installed, then run the following command inside the project folder:

npm i && npm start

Project structure

The project is structured as follows:

  • index.js - the store provider for the app
  • App.js - root component with react-router, displaying pages depending on route
  • components/atoms - low-level components
  • components/molecules - components that reuse the atoms
  • components/organisms - components that reuse the molecules and atoms
  • components/pages/ - high level pages which use organisms, molecules, and atoms.
  • store/ - Redux store
  • features/ - the reducers and selectors
  • styles/ - global styles and scss mixins/variables
  • utils - utility functions (e.g. memoize certain operations)

Features under construction

The following features are still under construction:

  • X Memoization for 'expensive' operations
  • X Preview cart on CartIcon hover
  • X Beautify code & imports
  • X Save store to localStorage
  • X Connect to an api for data fetching + refactor to accomodate api specs
  • Write tests

Tech stack

Tech stack laundry list:

  • React.js
  • Redux, React Redux, Redux Toolkit
  • FontAwesome
  • Sass