This is the repository for all ViSenze widgets aiming to accelerate development and deployment of Visenze powered Shopping Experiences.
The widgets use react and tailwind css.
Each widget can operate as a standalone component to be deployed in an ecommerce website and can be build and distributed independently from each other.
├─ common <- Folder for code used across different widgets
├─ client <- Client connecting with ViSenze APIs
├─ components <- Common React components
├─ types <- TypeScript typing
├── official-widgets <- Widgets built and officially supported by ViSenze
├─ camera-search
├─ search-results-page
├─ similar-search
Each widget is designed to be distributed as a separate bundle. For example, using camera-search
:
- To run the widget locally:
- Add your app key and placement ID to
dev-configs.ts
in the relevant folder, which in this case issrc/official-widgets/camera-search
. - Run:
The dev server will be available at
npm run start:camera-search
http://localhost:8080
and will automatically reload for changes made insrc/official-widgets/camera-search
folder.
- Add your app key and placement ID to
- To bundle the widget:
The bundled file will be available in
npm run build:camera-search
dist/camera-search
directory.