Skip to content

wayann/rethinkdb-example-sinatra-pastie

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it

A simple Pastie.org-like web application inspired by Nick Plante's toopaste project showing how to use RethinkDB as a backend for Sinatra applications.

The app demos the following functionality:

  • Creating a new snippet (code highlighting included)
  • Retrieving a snippet
  • Listing snippets for a language

The app could be easily extended to provide more interesting features like:

  • pagination
  • snippet expiration

Fork it and send us a pull request.

Complete stack

Installation

git clone git://github.com/rethinkdb/rethinkdb-example-sinatra-pastie.git
cd rethinkdb-example-sinatra-pastie
bundle

Note: If you don't have RethinkDB installed, you can follow these instructions to get it up and running.

Running the application

Running a Sinatra app is as easy as:

rackup

Credits

License

This demo application is licensed under the MIT license: http://opensource.org/licenses/mit-license.php

About

A canonical Sinatra Pastie-like application running on RethinkDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 58.9%
  • HTML 41.1%