Code patterns

Roadmaps for solving complex programming challenges.

Patterns give you a 360-degree view of the underlying code, including overviews, architecture diagrams, process flows, repo pointers, and additional reading.

Determine target audience and run marketing campaigns

Pattern demonstrates the methodology to determine target audience and run marketing campaigns using Watson Studio and Watson Campaign Automation.


Track donations with blockchain

Create a blockchain network for validating pledges and tracking funds made by the government for humanitarian causes.


Detect, track, and count cars in a video

Use automatic labeling to create a model from a video, then use the model to annotate a video.


Develop a web-based mobile health app that uses machine learning

Deploy and use a web-based health app on your smartphone using Watson services on IBM Cloud and IBM Watson Studio.


Deploy Hyperledger Fabric network on IBM Cloud

Get started with blockchain by deploying the blockchain network on Hyperledger Fabric using Kubernetes APIs on the IBM Cloud Container Service.


Classify ICD-10 data with Watson

A simple web app shows how Watson's Natural Language Classifier (NLC) can classify ICD-10 code.


Integrate RabbitMQ and Redis Cluster with a blockchain network

Check out how to control the flow of requests to a blockchain network using RabbitMQ and Redis Cluster.


Create a web app to analyze and visualize IoT device data

Create an application to view trends of IoT device data across days and other statistical plots to analyze the data.


Develop an IoT asset tracking app using Blockchain

You can use this code pattern to to track environmental conditions for a food safety supply chain, refrigerated medical supplies, garden plant shipments, or any perishable shipment that are sensitive to the temperature, humidity, vibration, or time.


Use IoT dashboards to analyze data sent from a Blockchain network

Build an IoT app that stores, processes, and analyzes data from a Blockchain app and sends the data to be displayed in IoT dashboards.


Load test your blockchain network

Load test your blockchain application by submitting a large number of enroll, invoke, and query requests, then viewing the results in MongoDB.


Create an app to get stock information, prices, and sentiment

Use IBM Watson Discovery, CloudantDB, Node.js, and Alpha Vantage to create a web app to monitor sentiment, price, and news for individually listed stocks.


Build a dynamic dashboard application

This code pattern provides an Angular 5 and Node.js demo app that demonstrates IBM Cognos Dashboard Embedded, an IBM Cloud service for visualizations.


Ingest and analyze event data streams for timely insights

Visualize statistics about taxi rides while the event data is streamed from an external program.


Optimize your visual recognition classification

Build training and prediction apps with Java, Watson IoT Platform, Node-RED, and Watson Visual Recognition service.