A detailed user manual for the buyer reference app is available here
This repo is ONDC Buyer App with microservice architecture which contains
- protocol layer(python)
- client API layer (node js)
- front app(react) being served via nginx
- ancillary API (python) - flask apis for utilities like mapmyindia, knowlarity composed together with docker-compose.yaml
- wants to refer the buyer app
- wants the same setup to be available in their infra
- pick any component of it and use separately
- Make sure you've pulled all sub-directories, CMD
- You need a ngrok instance to be running locally so you can publish yourself to the internet
- Install ngrok
brew install --cask ngrok
ngrok http 5555
- Copy the url to the clipboard and paste in
BAP_URL
andPROTOCOL_BASE_URL
in .env-local - Now we need to setup the docker-compose env file
- Pick the .env-local file and ask the admin for keys that need to replaced
- Get
firebase-service-account.json
(this can be fetched from firebase console too) andjuspay.pem
from admin and place them under the pathbiap-client-node-js/config/dev
- Run
docker-compose -f docker-compose-for-local.yaml --env-file .env-local up -d
- Open
http://localhost