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
- 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
- node
- yarn
git clone <repository-url>
, where<repository-url>
is the link to the forked repositorycd 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
-
Install all the dependencies with
yarn install
-
To Get Apid please folllow step written in ondc buyer sdk docs (step 3 page 5 to 9)
-
create a new .env file in root folder
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
-
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.