Skip to content

Latest commit

 

History

History
172 lines (111 loc) · 5.17 KB

README.rdoc

File metadata and controls

172 lines (111 loc) · 5.17 KB

BLANK APPLICATION - Multimedia Content Management Framework.

Author: ThinkDRY

Version: 1.0.4

Date: December 15th 2009

OVERVIEW

The BLANK Application is a collaborative Content Management Framework which allows users to store and share various type of contents (articles, videos, files, pictures, RSS Feed). Content is organized in workspaces with rights applied on them. A configuration page allows superadministrator to custom content types, rights, filters, translations and other common stuff (Logo, name, exception mail).

We call it Framework rather than System cause BlankApplication is a developer oriented application and it’s build to simplify your work guys. That’s how we create in thinkDRY live applications in days.

The application is RESTful, use Test-Driven and Behaviour-Driven development and try to include few good practices :

  • RDOC

  • RSPEC

  • Use of engines

  • DRY & Commented code

As good Rails stuffs always came from space, we are connected to them and widely used their special combos:

  • Acts_as_xapian

  • Searchlogic

  • Delayed-job

  • Paperclip

  • Make ressourcefull

  • PaulDix-FeedZirra

  • Faker

  • Populator

  • and much more

This is a live a application with daily commits on forge.thinkdry.com. Public GitHub version is as stable as possible. BlankApplication is currently live:

and is comming on www.tarifmedia.com, reflex-culture.thinkdry.com.

We have a heavy bag of ideas and are still open to get more. Believe us something is happening here.

DOCUMENTATION

If you need to know more about BlankApplication, go on blankapplication.thinkdry.com RDOC is published on rdoc.info/projects/thinkdry/blank-application Tickets, main git repo and team is working on forge.thinkdry.com

GETTING BlankApplication

  • Git repository on GitHub: git://github.com/thinkdry/blank-application.git

INSTALLATION & SETUP

1) Unzip or clone BlankApplication in the desired folder

2) Database Initialization

Create a database.yml file in /config/ , an example model can be found in /config/install_files/ 
Note: .yml files require proper indentation to work properly.

Settings can be put depending on your Database for EX: for Mysql

production:
  adapter: mysql
  encoding: utf8
  database: blank_production
  username: mysql_user_name
  password: mysql_password
  socket: /var/run/mysqld/mysqld.sock

Note: for socket path go to mysql prompt and type "status". Copy UNIX socket path.

3) Run the installation rake task:

rake blank:install RAILS_ENV=production

4) Start the server with ./script/server -e production

Open http://localhost:3000/ in your browser
Use The Default User Created by blank:install called 'boss' and password as 'monkey'
Use the superadministration panel to customize 'Blank Application'

Advanced INSTALLATION requierement

If you start from a new virtual machine or if you are a Newbee, here are some additional things to do.

MySQL lib

sudo apt-get install libmysqlclient15-dev

LibXML (for PaulDix-FeedZirra)

sudo apt-get install libxslt-dev libxml2-dev

LibCurl (for PaulDix-FeedZirra)

sudo apt-get install libcurl3-dev

OpenSSL

sudo apt-get install libopenssl-ruby

ImageMagick :

sudo apt-get install imagemagick libmagick9-dev

For acts_as_xapian plugins

sudo apt-get install libxapian15 libxapian-ruby1.8

For RFeedReader gem

sudo apt-get install libxml-ruby1.8 libxml-parser-ruby1.8

FFMPEG installation

This module is needed to encode the video with x264 codec and audio files with LameMP3 on the server.

X264

git clone git://git.videolan.org/x264.git cd /path/to/x264-dir sudo ./configure –enable-shared –disable-asm sudo make && make install sudo ldconfig

LameMP3

wget sourceforge.net/projects/lame/files/lame/3.97/lame-3.97.tar.gz/download tar zxf lame* cd lame* sudo ./configure && make && make install

FFMPEG

mkdir src cd src svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg cd ffmpeg sudo ./configure –enable-libx264 –enable-gpl –enable-libmp3lame –enable-shared sudo make sudo make install ffmpeg (to check installation)

Tips: if ffmpeg is not working after install do: nano /etc/ld.so.conf.d/custom-libs.conf Add the line : /usr/local/lib And run: sudo ldconfig

Tips for Window$ guys:

ImageMagick :

Download ImageMagick from rubyforge.org/frs/?group_id=12 Windows Version. Unzip the file and install ImageMagick.

Xapian :

Download xapian-x.x.xx-bindings-ruby.zip from www.flax.co.uk/xapian_windows.shtml Unzip the downloaded file Copy the _xapian.so file to C:Rubylibruby1.8i386-mswin32 Copy the xapian.rb file to C:Rubylibruby1.8 Now you need to download the latest Microsoft Visual C++ 2005 Redistributable Package (x86). You can find it in www.microsoft.com/downloads/details.aspx?familyid=32bc1bee-a3f9-4c13-9c99-220b62a191ee&displaylang=en Download the file, install it and restart your machine. You should be good for xapian

Thikdry Team

For troubleshooting and feedback mail [email protected]