Skip to content

kmerz/graveio

Repository files navigation

graveio - where your code stays alive

Build Status

graveio provides an easy-to-use and install Pastebin-Solution intended for inhouse Use.

Screenshot

Installing:

  • clone this repository
  • install 'ruby 1.9', 'nodejs' and a database of your choice (e.g. postgresql, sqlite3)
  • install Bundler: gem install bundler
  • adjust Gemfile to match your database (e.g. gem "pg" for postgresql)
  • call bundle install inside of repository
  • call rake db:create && rake db:migrate
  • call rake test to ensure that everything works

Launching:

  • rails s

This will run Rails in development mode on port 3000.

For easier posting of content to graveio, you can use bury, a Ruby command line tool which also integrates with Vim. You can find it in public/bin/bury.rb.

Virtual Test and Development Environment

To give gravio a try we provide an automated process to set up a virtual test/development machine with VirtualBox and Vagrant.

Requirements

Bootstrapping the Virtual Development Machine

git clone https://github.com/kmerz/graveio.git
cd graveio
git submodule init
git submodule update
vagrant up

This sets up a virtual development machine host graveio-dev based on Ubuntu 12.04. providing ruby 1.9.3 via rvm(1), the latest nodejs stable release and sqlite3 as database. The IP address assigned to the host is 192.168.10.10 which can be changed by adapting the parameter "config.vm.network" in Vagrantfile accordingly. The setup takes a couple of minutes. After the installation has finished you can login to the machine by running: vagrant ssh

Running graveio in the Virtual Machine

Run the following steps to install graveio within the Virtual Development Machine:

vagrant ssh
cd /vagrant
bundle install
rake db:create && rake db:migrate
rake test
rails s

Then, open your favorite browser and point it to http://192.168.10.10:3000

How To Contribute

If you would like to contribute to graveio clone it from https://github.com/kmerz/graveio.

Please add tests along with new code. If you want to contribute new code please accept the maximum width of 80 characters per line in source files.

License

Graveio is released under the BSD 2-Clause License.