Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: asciinema/asciinema.org
base: 4daedc7235
...
head fork: asciinema/asciinema.org
compare: 125dae81d2
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 49 additions and 15 deletions.
  1. +48 −2 README.md
  2. +1 −1  config/database.yml.example
  3. +0 −12 db/schema.rb
View
50 README.md
@@ -1,4 +1,50 @@
# ascii.io [![Build Status](https://secure.travis-ci.org/sickill/ascii.io.png?branch=master)](http://travis-ci.org/sickill/ascii.io)
-Here are the sources of ascii.io website. If you look for ascii.io command line
-recorder look here: https://github.com/sickill/ascii.io-cli
+This is the source code of ascii.io website/player. If you look for ascii.io command line
+recorder go here: https://github.com/sickill/ascii.io-cli
+
+Below are setup instructions in case you want to contribute and/or play with it
+on your local machine.
+
+## Requirements
+
+ascii.io site is a Ruby on Rails application. You should have following
+installed:
+
+* ruby 1.9.2+ (``rvm install 1.9.2``)
+* bundler (``gem install bundler``)
+
+For thumbnail generation you need also:
+
+* tmux
+* scriptreplay (Linux only via ``script`` package. OSX users: sorry, your script
+ command is crippled anyway)
+
+## Setup
+
+### Clone
+
+ $ git clone git://github.com/sickill/ascii.io.git
+ $ cd ascii.io
+
+### Install gem dependencies
+
+ $ bundle install
+
+### Setup DB
+
+* copy *config/database.yml.example* to *config/database.yml* and set adapter
+ to what you prefer,
+* create *ascii_io_development* database,
+* run ``bundle exec db:setup``
+
+### Start
+
+* start webserver with ``script/rails s``
+* (optional) start background job worker for thumbnail generation with
+ ``bundle exec sidekiq``
+
+## Authors
+
+* Marcin Kulik (sickill)
+* Michał Wróbel (sparrovv)
View
2  config/database.yml.example
@@ -9,7 +9,7 @@ development:
adapter: mysql2
encoding: utf8
database: ascii_io_development
- pool: 5
+ pool: 25
username: root
password:
socket: /tmp/mysql.sock
View
12 db/schema.rb
@@ -39,7 +39,6 @@
add_index "asciicasts", ["created_at"], :name => "index_asciicasts_on_created_at"
add_index "asciicasts", ["featured"], :name => "index_asciicasts_on_featured"
- add_index "asciicasts", ["likes_count"], :name => "index_asciicasts_on_likes_count"
add_index "asciicasts", ["recorded_at"], :name => "index_asciicasts_on_recorded_at"
add_index "asciicasts", ["user_id"], :name => "index_asciicasts_on_user_id"
add_index "asciicasts", ["user_token"], :name => "index_asciicasts_on_user_token"
@@ -55,17 +54,6 @@
add_index "comments", ["asciicast_id"], :name => "index_comments_on_asciicast_id"
add_index "comments", ["user_id"], :name => "index_comments_on_user_id"
- create_table "likes", :force => true do |t|
- t.integer "asciicast_id", :null => false
- t.integer "user_id", :null => false
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
- end
-
- add_index "likes", ["asciicast_id"], :name => "index_likes_on_asciicast_id"
- add_index "likes", ["user_id", "asciicast_id"], :name => "index_likes_on_user_id_and_asciicast_id"
- add_index "likes", ["user_id"], :name => "index_likes_on_user_id"
-
create_table "user_tokens", :force => true do |t|
t.integer "user_id", :null => false
t.string "token", :null => false

No commit comments for this range

Something went wrong with that request. Please try again.