Skip to content

nicodds/learn-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn Redis

About

This code is the product (still in progress) of some hours spent learning Redis.

We focused on a simple problem, a book inventory app, and tried to solve it with a nosql approach, using ruby, sinatra and redis-rb.

The code

A short summary of the code:

  1. library.rb works as an interface with Redis;
  2. poormenslibrary.rb is the sinatra app that interfaces with users.

More code will come.

This code has to be intended as a rough journey in Redis peculiarities, few checks are done on the sanity of user input, so use it just as starting point to learn how to model your database using Redis.

Requirements

Before using this code, you should check in your system if you have a working installation of the Redis server. After you are shure that Redis is up and running, you should install 2 gems, in order to get the library app working:

gem install sinatra
gem sources -a http://gems.github.com
gem install ezmobius-redis-rb

Now you are ready to taste Redis candies by issuing the command ruby poormenslibrary.rb from the app directory.

About

Companion code for some self-learning notes about Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages