Skip to content

Frontend code for personal E-bazaar project it includes some e-commerce features like adding products in database, controlling the cart with database and backend, searching, filtering and pagination with the backend.

Notifications You must be signed in to change notification settings

ArshadChowdhury/e-bazaar-frontend

Repository files navigation

E-bazaar frontend

Frontend of an e-commerce project to add products, search products, provide discount, add/edit quantity or delete products from cart.

Check out the Live App here

Table of contents

  • Project overview
  • Tech stack
  • Motivation behind this project
  • Getting started locally

Project overview

This is the frontend part of an e-commerce project I've worked on previously. Here you can add new product, find your product by searching, or by navigating to that page where the product is, add items to the cart, update the quantity on the cart, delete items from the cart, provide discount start and end date. The cart and all products are saved in a database using MongoDB so even if you reload the page it'll all be there for you. Made the project fully responsive as well, so it looks great in all devices, have modals and side drawers to add product and see the cart. We're using Nest.js as the backend, you can check that code here - https://github.com/ArshadChowdhury/e-bazaar-backend

Here's a glimpse of the app -

image

image

image

Tech stack -

Next.js with TypeScript
TailwindCSS
Nest.js with TypeScript (for backend)
MongoDB (for backend)

Motivation behind this project

I learned coding on my own, I've saw some videos on youtube that made shopping cart, search work on frontend, but I didn't know that in real life applications we should store the cart,search data in backend. I've learned about this in my last job where I saw they're implementing cart, search and pagination in the backend. So I thought to myself yeah it makes perfect sense now it'll be more secure and user can have the data saved as well. I figured I need to build a project with search, pagination and cart which will use backend/database to store the data. From that thinking I've built this project to learn more about searching, paginating and adding/deleting/updating cart items in backend. You can check the backend code right here - https://github.com/ArshadChowdhury/e-bazaar-backend

Getting started locally -

First you'll need to clone this project by running

git clone https://github.com/ArshadChowdhury/e-bazaar-frontend.git

then change directory to e-bazaar-frontend folder then run

$ npm install
# or 
$ yarn install

and then run the development server by running

npm run dev
# or
yarn dev

You'll also need an env to connect to backend contact me on social media for that.

After adding the env file -

Open http://localhost:3000 with your browser to see the result.

About

Frontend code for personal E-bazaar project it includes some e-commerce features like adding products in database, controlling the cart with database and backend, searching, filtering and pagination with the backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published