Skip to content

This is a web based application for an online supermarket made using React JS

License

Notifications You must be signed in to change notification settings

pavas23/supermart-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supermart-frontend

License: MIT Github Repo Size npm version last commit contributors

This is a web based application for an online supermarket. Through which customers can register and order items made using React JS.

User Management

  • A user can be admin, manager or customer
  • Admin is the super user with all permissions.
  • Users (customer, admin and manager) will have information such as user name, user id etc.
  • id (unique across the system), phone number, and email id, and address.
  • An existing user should log into the system with user id and password.
  • New customers are permitted to register.
  • Manager/admin can add or delete items, modify details about the items (price/qty/offers etc.)
  • A user can withdraw from the Application.
  • Password change (reset) facility is provided.

Admin/Manager Publishing Item Details

  • Manager or admin users should be allowed to publish the details of the items made available for sale. Details needed are item_name, item_code, price, offer if any, qty available, delivery time etc.
  • A manager or admin can delete the published item whenever required.

Customer Order Management

  • A customer should be allowed to view/search the items published/available for sale.
  • Select items to the cart.
  • Customers can register and order items.
  • Confirm order and make payment
  • User should get a confirmation message with expected delivery date.
  • User will have a Wallet from where payments will be made, and user can top-up the wallet if necessary. But at the time of registration must start with minimum of 1000/-.
  • User can add review about the website.

Other Functionality

  • Admin user should be able to generate reports like – items sold on a date, customer order details(summary) for a month, item stock status etc.
  • Any user can generate his/her order history (summary) for a given month.

Preview

MainPage

Products

orderAnalytics

Run Locally

  1. clone this git repo
  2. cd into project directory
  3. cd my-app
  4. install this project with npm
  5. install all dependencies with npm install
  6. create a .env file in my-app directory
  7. Add the following lines in .env file
REACT_APP_APIURL=
ADMIN_EMAIL=
ADMIN_PASSWORD=
  1. now to start the react app use npm start

Directory Tree

cd src

components
├── Admin
   ├── AddManager.jsx
   ├── AdminLogin.jsx
   ├── Dashboard.jsx
   ├── EditProd.jsx
   ├── NavbarAdmin.jsx
   ├── OrderAnalytics.jsx
   └── Settings.jsx
├── Customer
   ├── Accounts.jsx
   ├── Card.jsx
   ├── Checkout.jsx
   ├── Forgot.jsx
   ├── Home.jsx
   ├── Login.jsx
   ├── MainProducts.jsx
   ├── MyProfile.jsx
   ├── Navbar.jsx
   ├── NavbarProducts.jsx
   ├── OtpSignUp.jsx
   ├── Payment.jsx
   ├── Profile.jsx
   ├── Register.jsx
   ├── Reset.jsx
   ├── Review.jsx
   └── Wallet.jsx
└── Manager
    ├── AddProd.jsx
    ├── ManagerLogin.jsx
    ├── Product.jsx
    └── UpdateProduct.jsx
context
├── admin
   ├── AdminContext.jsx
   └── AdminState.jsx
├── customer
   ├── CustomerContext.jsx
   └── CustomerState.jsx
├── manager
   ├── ManagerContext.jsx
   └── ManagerState.jsx
└── product
    ├── ProductContext.jsx
    └── ProductState.jsx

Tech Stack

  • HTML
  • CSS
  • JavaScript
  • Tailwind CSS
  • Bootstrap
  • React JS

Link to Backend Repo

About

This is a web based application for an online supermarket made using React JS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published