This is a simple store app built with React that allows users to view and manage products and categories.
The app uses both a remote API and localStorage to store and update data. It provides CRUD (Create, Read, Update, Delete) functionality for products and categories.
The following routes are available:
/
: displays all categories and products/login
: allows users to log in/category/:category
: displays products in the specified category/product/add
: allows admins to add a new product/product/:id
: displays details for a specific product/product/:id/remove
: allows admins to remove a product/product/:id/edit
: allows admins to edit a product
The app design was inspired by this Behance project. It uses the normalize.css
and reset-css
libraries for consistent styling.
To get started with the app, clone the repo and install dependencies:
npm install
Then start the app:
npm start
The app relies on the following dependencies:
react
: for building the UIreact-router-dom
: for client-side routingaxios
: for making API requestsnormalize.css
: for consistent stylingreset-css
: for consistent styling
The app uses a remote API to get data and local API to update and remove data. The api.js
file handles interactions with the API, as well as with localStorage.