A JavaScript guestbook app with a number of different backend implementations, each using a different client library to communicate with CrateDB.
Clone or download
lukasbals Merge pull request #71 from crate/lu/fix-quotes-user
fixed apps to run with the latest CrateDB version + added a NodeJS backend app
Latest commit 76322ac Aug 8, 2018

README.rst

CrateDB Sample Apps

Overview

A JavaScript guestbook app with a number of different backend implementations, each using a different client library to communicate with CrateDB.

Prerequisites

You need install and run CrateDB 0.54.1 or higher before you set things up.

If you're using the Java backend, you will need 0.57.0 or higher.

You will also need to install crash (the CrateDB CLI tool) to work with CrateDB on the command line.

See the CrateDB Getting Started guide for help.

Setup

Once CrateDB instance is running, create the required schema and import the country data:

$ crash < sql/schemas.sql
$ crash -c "COPY guestbook.countries FROM '$(pwd)/sql/countries.json'"

Components

Frontend

The frontend is shared by all apps and is written in JavaScript. This frontend communicates with the backend over a REST API.

Backends

The are several implementations of the backend REST API:

Contributing

This project is primarily maintained by Crate.io, but we welcome community contributions!

See the developer docs and the contribution docs for more information.

Help

Looking for more help?