/ref_aaP

Primary LanguageJavaScript

Reference Buyer Web App

Reference Buyer Web App is an ecommerce app like amazon/flipkart developed using ondc buyer sdk . This app has basic modules like cart, producList, Orders,businessProfile. If you want to make your own ondc buyer app you can directly clone and customize it according to your usecase

Technology Stack

Components

  • CSS: Styling web pages, html files
  • Javascript: Primary programing language
  • ReactJS: Javascript library for building User Interfaces
  • styled-components: CSS-in-JS library
  • firestore *firbase-cloud-function

Requirements

  • node
  • yarn

Local Installation

Steps

  • git clone <repository-url> , where <repository-url> is the link to the forked repository
  • cd sdk-reference-buyer

Note : If you want to contribute, first fork the original repository and clone the forked repository into your local machine followed by cd into the directory

git clone (https://github.com/developers-esamudaay/sdk-reference-buyer.git)
cd sdk-reference-buyer

REACT_APP_API_ID=<YOUR APID>
  • To get Firebase config of your project please check firebse docs

  • Go src-> data-> firebase_init and replace firebaseConfig with your own firebase config

  • Create Firestore collection with exact same name ondcCatalog, ondcOrder, ondcOrder,ondcCart,ondcProducts

  • setup firebase cloud function

  • deloy cloud function with script available in firbaseCloudFunction file

  • path for script src->cloudFunction.js

  • Start the server with yarn start

  • Visit your app at http://localhost:3000.