Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initial setup

  • Loading branch information...
commit 39639aed723a9673ae61d11cb0d50317ab754f96 1 parent 9809fbe
@dkln authored
View
1  .gitignore
@@ -0,0 +1 @@
+.sass-cache
View
1  .rvmrc
@@ -0,0 +1 @@
+rvm 1.9.3-p125@kampvuur --create
View
16 Gemfile
@@ -0,0 +1,16 @@
+source 'http://rubygems.org'
+
+gem 'foreman'
+gem 'thin'
+gem 'eventmachine'
+gem 'em-websocket'
+gem 'json'
+
+group :development do
+ gem 'capistrano-ext'
+ gem 'capistrano_colors'
+ gem 'capistrano'
+ gem 'guard-coffeescript'
+ gem 'guard-compass'
+ gem 'sass'
+end
View
75 Gemfile.lock
@@ -0,0 +1,75 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ addressable (2.2.7)
+ capistrano (2.11.2)
+ highline
+ net-scp (>= 1.0.0)
+ net-sftp (>= 2.0.0)
+ net-ssh (>= 2.0.14)
+ net-ssh-gateway (>= 1.1.0)
+ capistrano-ext (1.2.1)
+ capistrano (>= 1.0.0)
+ capistrano_colors (0.5.5)
+ chunky_png (1.2.5)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.2.0)
+ compass (0.12.1)
+ chunky_png (~> 1.2)
+ fssm (>= 0.2.7)
+ sass (~> 3.1)
+ daemons (1.1.8)
+ em-websocket (0.3.6)
+ addressable (>= 2.1.1)
+ eventmachine (>= 0.12.9)
+ eventmachine (0.12.10)
+ execjs (1.3.0)
+ multi_json (~> 1.0)
+ ffi (1.0.11)
+ foreman (0.41.0)
+ thor (>= 0.13.6)
+ fssm (0.2.8.1)
+ guard (1.0.1)
+ ffi (>= 0.5.0)
+ thor (~> 0.14.6)
+ guard-coffeescript (0.5.7)
+ coffee-script (>= 2.2.0)
+ guard (>= 0.8.3)
+ guard-compass (0.0.6)
+ compass (>= 0.10.5)
+ guard (>= 0.2.1)
+ highline (1.6.11)
+ json (1.6.6)
+ multi_json (1.2.0)
+ net-scp (1.0.4)
+ net-ssh (>= 1.99.1)
+ net-sftp (2.0.5)
+ net-ssh (>= 2.0.9)
+ net-ssh (2.3.0)
+ net-ssh-gateway (1.1.0)
+ net-ssh (>= 1.99.1)
+ rack (1.4.1)
+ sass (3.1.15)
+ thin (1.3.1)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
+ thor (0.14.6)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ capistrano
+ capistrano-ext
+ capistrano_colors
+ em-websocket
+ eventmachine
+ foreman
+ guard-coffeescript
+ guard-compass
+ json
+ sass
+ thin
View
6 Guardfile
@@ -0,0 +1,6 @@
+#!/usr/bin/env ruby
+guard 'coffeescript', :input => 'src', :output => 'public/js'
+
+guard 'compass' do
+ watch(%r|^src/(.*)\.s[ac]ss|)
+end
View
2  Procfile
@@ -0,0 +1,2 @@
+server: ruby server.rb
+client: thin start
View
13 README
@@ -0,0 +1,13 @@
+# Kampvuur
+
+Graphical chatclient using avatars in 8-bit style
+
+## Getting started
+
+Start the server:
+
+ ./script/server
+
+Go to http://localhost:3000/
+
+And do your thing!
View
25 config.rb
@@ -0,0 +1,25 @@
+# Require any additional compass plugins here.
+
+# Set this to the root of your project when deployed:
+http_path = "/"
+css_dir = "public/css"
+sass_dir = "src"
+images_dir = "images"
+javascripts_dir = "js"
+
+# You can select your preferred output style here (can be overridden via the command line):
+# output_style = :expanded or :nested or :compact or :compressed
+output_style = :compressed
+
+# To enable relative paths to assets via compass helper functions. Uncomment:
+# relative_assets = true
+
+# To disable debugging comments that display the original location of your selectors. Uncomment:
+line_comments = false
+
+
+# If you prefer the indented syntax, you might want to regenerate this
+# project again passing --syntax sass, or you can uncomment this:
+preferred_syntax = :sass
+# and then run:
+# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
View
2  config.ru
@@ -0,0 +1,2 @@
+use Rack::Static , :urls => { "/" => "index.html" } , :root => "public"
+run Rack::URLMap.new("/" => Rack::Directory.new("public"))
View
14 config/thin.yml
@@ -0,0 +1,14 @@
+---
+address: 127.0.0.1
+pid: tmp/pids/thin.pid
+port: 4545
+timeout: 30
+wait: 30
+log: log/thin.log
+max_conns: 1024
+require: []
+
+environment: development
+max_persistent_conns: 512
+daemonize: true
+chdir: /home/kampvuur/kampvuur/current
View
1  public/css/kampvuur.css
@@ -0,0 +1 @@
+html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}caption,th,td{text-align:left;font-weight:normal;vertical-align:middle}q,blockquote{quotes:none}q:before,q:after,blockquote:before,blockquote:after{content:"";content:none}a img{border:none}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary{display:block}
View
23 public/index.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
+<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
+<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
+<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
+<head>
+ <meta charset="utf-8">
+
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+
+ <title>Kampvuur</title>
+ <meta name="description" content="">
+ <meta name="author" content="">
+
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+
+ <link rel="stylesheet" href="css/kampvuur.css">
+ <script src="js/kampvuur.js"></script>
+</head>
+
+<body>
+</body>
+</html>
View
8 public/js/kampvuur.js
@@ -0,0 +1,8 @@
+(function() {
+ var Kampvuur;
+
+ Kampvuur = {
+ version: 0.1
+ };
+
+}).call(this);
View
BIN  public/webfont.woff
Binary file not shown
View
5 script/server
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -e
+gem which bundler > /dev/null 2>&1 || gem install bundler --no-ri --no-rdoc
+bundle check > /dev/null || bundle install
+bundle exec foreman start
View
14 server.rb
@@ -0,0 +1,14 @@
+require 'rubygems'
+require 'bundler/setup'
+require 'em-websocket'
+require 'json'
+
+HOST = '0.0.0.0'
+PORT = 8080
+
+EventMachine.run do
+ EventMachine::WebSocket.start(host: HOST, port: PORT) do |socket|
+ end
+
+ puts "Server started successfully"
+end
View
2  src/kampvuur.coffee
@@ -0,0 +1,2 @@
+Kampvuur =
+ version: 0.1
View
2  src/kampvuur.sass
@@ -0,0 +1,2 @@
+@import compass
+@import compass/reset
Please sign in to comment.
Something went wrong with that request. Please try again.