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.

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 Dynamic 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.

Create an augmented reality application with facial detection

Create an app that combines ARKit with Watson Visual Recognition and a Cloudant database to give you a complete augmented reality experience.

Analyze SMS messages with Watson Knowledge Studio

Build a custom model to better categorize SMS message content using Watson Knowledge Studio and Watson Natural Language Understanding.

Recycle with Watson

Create an iOS phone application that uses a Watson Visual Recognition custom classifier to sort waste into three categories (landfill, recycling, or compost).

Deploy a React application on Kubernetes

Built for developers who are interested in learning how to deploy a React application on Kubernetes, this code pattern uses the React and Redux framework and calls the OMDb API to look up movie information based on user input. This pattern can be built and run on both Docker and Kubernetes.

Get customer insights from product reviews

Walk through a working example of a web application that queries and manipulates data from the Watson Discovery Service. Use Watson Knowledge Studio to enhance the data enrichments, and then use the app's UI components as a starting point for developing your own Watson Discovery Service applications.

Generate restaurant reviews using deep learning

Train a deep learning language model in a notebook using Keras and Tensorflow.

Deploy and use a multi-framework deep learning platform on Kubernetes

Deploy and consume a deep learning platform on Kubernetes, offering TensorFlow, Caffe, PyTorch etc. as a service.

Deploy a Core ML model with Watson Visual Recognition

With Core ML, developers can integrate a trained machine learning model into an application. Watson Visual Recognition now supports exporting trained Core ML models. This code pattern shows you how to create a Core ML model using Watson Visual Recognition, which is then bundled into an application.

Integrate Watson AI into Salesforce apps

Learn how to use the Watson Salesforce SDK to make calls to Watson Visual Recognition, Watson Discovery, and Watson Tone Analyzer APIs.

Develop protected serverless web applications

In this code pattern, we demonstrate how to utilize IBM Cloud Functions with OAuth 2 to enable the authentication and authorization in a web app.