Skip to content

Repository files navigation

Measurinator

About

This is a Ruby on Rails application with Cassandra back-end to store and show temperature measurements. You can use latest Cassandra with this.

The application has an API for storing the measurements.

Installation

Currently you need to install the Cassandra database schema manually.

It is in the file db/schema.cql.

First create keyspace:

$ cqlsh

cqlsh> create KEYSPACE temperatures WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};

Then

$ cqlsh -f db/schema.cql

Now you are ready to run the software by executing

$ rails server

Docker deployment (for now)

Start docker env:

docker-compose run web bash

Inside docker, setup ssh

eval $(ssh-agent -s); ssh-add ~/.ssh/id_rsa

Deploy

ruby -S bundle exec cap production deploy

About

Measurinator web site

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages