Return to Activities
Workshop

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.

Supplies

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

Downloads

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.

Read

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

Read

Build Scalable Apps (feat. CockroachDB) Instructor Guide (v1.0.0)

These are the instructions you'll use to teach the workshop. We'll email you a copy, but you can download it here as well.

Build Scalable Apps (feat. CockroachDB) Instructor Guide

Read

Build Scalable Apps (feat. CockroachDB) Presentation (v1.0.0)

These are the instructions you'll use to teach the workshop.

CockroachDB Presentation

PDF PPT KEY

Organizer Resources

These are resources that organizers can use to manage their MLH Localhost events. Print these out for your reference during the event.

Sign-in Sheet & Checklist

Sign-in Sheet (PDF) Checklist (PDF)

Get Started

The hackers are waiting for you.


Have a question?