PickBazar React Documentation
WelcomeHow It WorksInstallation
Features
Available ScriptsCustomizationStyles and Assets
Back-End Integration
Deployment
Settings
TranslationNew PageFAQSupportVersions

For API Integration:

[your-frontend-project] = admin [rest/graphql] or shop

We have used env variables using .env file format. You have to put your API url within this file.

For example:

Put that url in the shop/.env and admin/rest/.env or admin/graphql/.env

for GraphQL

NEXT_PUBLIC_GRAPHQL_API_ENDPOINT= '{put_your_api_url_here}'

or for REST

NEXT_PUBLIC_REST_API_ENDPOINT= '{put_your_api_url_here}'
  • Navigate to shop
  • and change FRAMEWORK_PROVIDER to rest for REST installation or graphql for Graphql Installation from .env.
  • For REST, copy tsconfig.rest.json content to tsconfig.json or
  • For GraphQL copy tsconfig.graphql.json content to tsconfig.json