Enables a Vendure store/multi-tenant setup to be part of the Beckn commerce network as a Beckn Platform Provider.
- Clone
https://github.com/beckn/vendure.git
- Copy the packages/beckn-vendure-plugin folder to the src/plugins folder of your Vendure installation.
- Goto the beckn-vendure-plugin folder and type
npm install --omit=dev
- Run
npm run build
- Modify the vendure-config.ts file in the src folder of vendure installation to set the following:
import { BecknVendurePlugin } from "./plugins/beckn-vendure-plugin/";
// this is in the dbConnectionOptions
synchronize: true,
//Add this to plugins folder
BecknVendurePlugin.init({
bpp_protocol_server_base_url: "http://localhost:6003", //bpp client url
bpp_id: YOUR_BPP_ID,
bpp_uri: YOUR_BPP_URI",
bpp_country: "IND",
bpp_city: "std:080",
transformationsFolder: path.join(__dirname, "plugins", "beckn-vendure-plugin", "transformations"),
}),
- Run
npm run dev
to start vendure shop
The Beckn Vendure Plugin uses the ReviewsPlugin for ratings functionality.
- Copy the reviews plugin from
/packages/dev-server/test-plugins
ofvendure
repo tosrc/plugins
folder. - Run
npm run build
. If you get errors on ui-devkit, runnpm install -D @vendure/ui-devkit
- Run
npm run build
andnpm run dev
. It should start without errors. - Add
ReviewsPlugin,
to the plugins arrary in vendure-config.ts file.
Refer to the developer notes section for more details.