Return to Activities

Building Scalable Apps with CockroachDB

Learn to build scalable web applications using CockroachDB as your database.

Workshop Overview

  • Beginner
  • 1.5h - 2h
  • Node.js, CockroachDB

Learning Objectives

  • Setting up CockroachDB on your computer
  • What a Database does
  • How your Database impacts your app's scale
  • Build an application that saves data to CockroachDB
  • How to test your application’s ability to scale

Have a question?

Get in touch if you have any questions regarding this workshop or MLH Localhost.

About this Workshop

During this workshop, you’ll teach participants the basics of SQL, how applications interact with databases, and how to utilize database backends with CockroachDB. The provided content covers setting up CockroachDB, writing your first SQL queries, and creating a basic application where data is written to and read from a CockroachDB server.

Build with CockroachDB

CockroachDB is a distributed SQL database using a table structure most developers will recognize. It provides a familiar SQL API for structuring, manipulating, and querying data. CockroachDB is also 100% open source and has a growing community that supports developers.

Scalable Databases

CockroachDB is a SQL database designed to grow with you. It uses a query engine designed to allow you to work with data in much larger volumes than with traditional relational databases. CockroachDB uses cutting edge practices to minimize application downtime, distribute data evenly, and provides an easy-to-read admin UI.

Requirements / Prerequisites

Participants will be required to have a computer that can connect to the Internet and run the following software:

System Requirements:

Participants should have a basic familiarity with databases and web applications. During this workshop we will be interacting with a basic application writtin using Node.js and Express.


When you host an MLH Localhost activity, we’ll send you everything you need to run it. Here’s what we’ll send you:

The List:

Resources & Downloads

Installing CockroachDB on your computer

Participants will need to install CockroachDB on their computers to run the applications they create. Participants may install CockroachDB during the workshop or in advance. It will be easier for you to help debug issues if you have been through this before.


Mac Linux Windows

Getting Started with Node.js

During this workshop, participants will be editing a pre-written application that uses Node.js. While anyone who has written some JavaScript should be able to get started with this tutorial, participants would benefit from having a basic understanding of Node.js and how it works.


Getting Started with Express (Node.js Web Framework)

It will also be helpful if you familiarize yourself with the Express framework. You should complete the basic tutorial on your own. While you won't be editing any Node.js or Express code during this workshop, it will help you present the information to participants.


Get Started

The hackers are waiting for you.

Have a question?