A Fake Marketplace built by combining various concepts of Frontend Development as well as Backend as Firebase.
Site is live at Fakebazaar
This is a project to learn and combine concepts like React Context API, React Router, Firebase, etc. Also to make use of Firebase Authentication, and subsequent conditional rendering and protected routes. It uses Google OAuth for authentication, which also requires setup of Authorized Domains in Firebase for hosting.
- Home: To highlight products with highest discounts, ratings.
- Categories: To view products based on category.
- Search: To search for products based on name.
- Cart: To view products in cart and checkout.
- Orders: To view past orders.
You can find the dataset & script to populate it in populate_firebase/
directory.
To populate the dataset, follow the instructions in
populate_firebase/README.md
.
Credits: BigBasket Products Dataset
Use the following steps to run the project locally:
- Clone this repo
- Run
npm i
to install all dependencies - Run
npm start
to start the server
- React JS
- Context API
- Hooks
- useState
- useEffect
- useContext
- React Router v6
- HashRouter
- Outlet
- Navigate
- Hooks
- useNavigate
- useParams
- useLocation
- Firebase
- Authentication
- Database
- Bootstrap
- React-feather