Skip to content

evRivera/zST-storefront-evershop

ย 
ย 

Repository files navigation

alt text AI on IBM Z Model Integration with WMLz and EverShop Storefront (E-Commerce App)

This guide is part of the AI on IBM Z Fraud Detection Solution Template.

We can use our deployed WMLz fraud detection AI model and integrate it into different types of applications. Guidance on integrating the AI model into a sample web based storefront is below. The AI model can be analyzed and/or provide inferencing APIs using a the sample AI on IBM Z Fraud Detection Dashboard.

The sample e-commerce application is based on the open source EverShop Storefront and has been extended to integrate with the AI on IBM Z Solution Template. EverShop is a GraphQL Based and React ecommerce platform with essential commerce features. Built with React, modular and fully customizable.

EverShop

alt text

Prerequisites

Step 1 - Install & Deploy Sample E-Commerce Application

  1. Set app_url_w_port variable in CheckoutForm.jsx to your server IP and port (ip:port)
  2. Run command in terminal:
    docker-compose up
    

Step 2 - Configure Sample E-Commerce Application

Access admin panel from web browser

  1. Enter URL in web browser using app url (e.g. localhost)
    http:https://localhost:3000/admin
    
  2. Login with default admin credentials

Add products

  1. Create categories

    • Click Categories from the Catalog section
    • Click New Category
    • Add category details
      • Add name (e.g. Kids)
      • Add url key
      • Add meta title
      • Change status to Enabled
      • Change include in store menu to Yes
    • Click Save

    alt text

  2. Add products

    • Click Products from the Catalog section
    • Click New Product
    • Add category details
      • Make sure to change add category
      • Make sure to change status to Enabled
      • Make sure to change visibility to Visible

    alt text

Configure store settings

  1. Click Setting on the bottom left
  2. Click Store Setting

Configure payment settings

  1. Click Setting on the bottom left
  2. Click Payment Setting
  3. Enable Stripe Payment
  4. Click Save

    alt text

Configure shipping settings

  1. Add shipping zone

    • Click Setting on the bottom left
    • Click Shipping Setting
    • Click Create new shipping zone
    • Add shipping details
    • Click Save

    alt text

  2. Add payment method

    • Click Add Method
    • Add Method Name (e.g. FedEx)
    • Enable status
    • Add flat rate (e.g. 10)
    • Click Save

    alt text

Step 3 - Access Sampe E-Commerce Application

  1. Enter URL in web browser using app url (e.g. localhost)
    http:https://localhost:3000
    
    alt text

Step 4 - Use Fraud Detection AI Model with EverShop Storefront

  1. Make sure you have AI on IBM Z Sample Fraud Detection Dashboard deployed for inferencing and analysis on the same local system
  2. AI on IBM Z Sample Fraud Detection Dashboard is configured to invoke WMLz AI model
  3. Add items to cart
  4. Place order
    • Choose Test failure as payment method for fraud transaction example
    • Choose Test success as payment method for non fraud transaction example alt text

About

๐Ÿ›๏ธ NodeJS E-commerce Platform

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.8%
  • SCSS 6.2%