Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Commit

Permalink
Inital commit
Browse files Browse the repository at this point in the history
  • Loading branch information
matharvard committed Sep 12, 2011
0 parents commit 4649356
Show file tree
Hide file tree
Showing 113 changed files with 2,854 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.bundle
db/*.sqlite3
log/*.log
tmp/
.sass-cache/
config/initializers/email_settings.rb
config/initializers/secret_token.rb
33 changes: 33 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
source 'http://rubygems.org'

gem 'rails', '3.1.0'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'

gem 'json'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', " ~> 3.1.0"
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier'
end

gem 'jquery-rails'

gem 'mongo_mapper'
gem 'joint'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug'

136 changes: 136 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
GEM
remote: http://rubygems.org/
specs:
actionmailer (3.1.0)
actionpack (= 3.1.0)
mail (~> 2.3.0)
actionpack (3.1.0)
activemodel (= 3.1.0)
activesupport (= 3.1.0)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
rack (~> 1.3.2)
rack-cache (~> 1.0.3)
rack-mount (~> 0.8.2)
rack-test (~> 0.6.1)
sprockets (~> 2.0.0)
activemodel (3.1.0)
activesupport (= 3.1.0)
bcrypt-ruby (~> 3.0.0)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.0)
activemodel (= 3.1.0)
activesupport (= 3.1.0)
arel (~> 2.2.1)
tzinfo (~> 0.3.29)
activeresource (3.1.0)
activemodel (= 3.1.0)
activesupport (= 3.1.0)
activesupport (3.1.0)
multi_json (~> 1.0)
arel (2.2.1)
bcrypt-ruby (3.0.0)
bson (1.3.1)
builder (3.0.0)
coffee-rails (3.1.0)
coffee-script (>= 2.2.0)
railties (~> 3.1.0.rc1)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.1.2)
erubis (2.7.0)
execjs (1.2.4)
multi_json (~> 1.0)
hike (1.2.1)
i18n (0.6.0)
jnunemaker-validatable (1.8.4)
activesupport (>= 2.3.4)
joint (0.5.5)
mime-types
mongo_mapper (~> 0.8.6)
wand (~> 0.4)
jquery-rails (1.0.14)
railties (~> 3.0)
thor (~> 0.14)
json (1.5.4)
mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
mongo (1.3.1)
bson (>= 1.3.1)
mongo_mapper (0.8.6)
activesupport (>= 2.3.4)
jnunemaker-validatable (~> 1.8.4)
plucky (~> 0.3.6)
multi_json (1.0.3)
plucky (0.3.8)
mongo (~> 1.3)
polyglot (0.3.2)
rack (1.3.2)
rack-cache (1.0.3)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
rails (3.1.0)
actionmailer (= 3.1.0)
actionpack (= 3.1.0)
activerecord (= 3.1.0)
activeresource (= 3.1.0)
activesupport (= 3.1.0)
bundler (~> 1.0)
railties (= 3.1.0)
railties (3.1.0)
actionpack (= 3.1.0)
activesupport (= 3.1.0)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (0.9.2)
rdoc (3.9.4)
safe_shell (1.0.1)
sass (3.1.7)
sass-rails (3.1.0)
actionpack (~> 3.1.0)
railties (~> 3.1.0)
sass (>= 3.1.4)
sprockets (2.0.0)
hike (~> 1.2)
rack (~> 1.0)
tilt (!= 1.3.0, ~> 1.1)
sqlite3 (1.3.4)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.29)
uglifier (1.0.3)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
wand (0.4)
mime-types
safe_shell (~> 1.0.0)

PLATFORMS
ruby

DEPENDENCIES
coffee-rails (~> 3.1.0)
joint
jquery-rails
json
mongo_mapper
rails (= 3.1.0)
sass-rails (~> 3.1.0)
sqlite3
uglifier
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Waves #

A MongoDB and Ruby on Rails powered application for running a tumblelog.

This is the successor to my other venture into the tumbleverse in the form of
[theorangeseed][theorangeseed].

## Getting it up & Running ##

You must have [MongoDB][mongodb] installed.

1. Edit MongoDB configuration details in `config/initializers/mongodb.rb`
2. Create `config/initializers/email_settings.rb` and put your
`smtp_settings` and `default_url_options` in it.
3. Create `config/initializers/secret_token.rb` and put
`Waves::Application.config.secret_token = 'your-secret-token'` in it. A
token can be generated with `rake secret`.
3. Run `bundle install`
4. Run `rails server` and it should be good to go

Create an account either through the console or with `rake db:seed`.

## To Dos ##

* Archives
* Template system (like Liquid)
* Improve Atom feed
* Admin panel and/or more administration features


[theorangeseed]: http://github.com/matharvard/theorangeseed
[mongodb]: http://www.mongodb.org/
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require File.expand_path('../config/application', __FILE__)
require 'rake'

Waves::Application.load_tasks
Binary file added app/assets/images/rails.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//= require jquery
//= require jquery_ujs
//= require_tree .
Empty file.
Empty file.
161 changes: 161 additions & 0 deletions app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
/*
* Waves
*= require_self
*/

/* RESET ------------------------------------------------------------------- */
@import "reset.css.scss";

/* BASE -------------------------------------------------------------------- */
body {
background:#fff;
color:#999;
font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:16px;
line-height:24px;
}

a,
a:visited {
color:rgba(7, 115, 188, 1.0);
text-decoration:none;
}

a:focus,
a:hover,
a:active {
color:rgba(7, 115, 188, 0.5);
text-decoration:none;
}

#content {
width:420px;
margin:0 auto;
}

/* HEADER ------------------------------------------------------------------ */
header {
padding:48px;

h1 {
font-size:24px;
font-weight:normal;
text-align:center;
text-transform:lowercase;

a,
a:visited {
color:rgba(7, 115, 188, 0.5);
text-decoration:none;
}

a:focus,
a:hover,
a:active {
color:rgba(7, 115, 188, 0.8);
text-decoration:none;
}
}
}

/* POST -------------------------------------------------------------------- */
@import "posts.css.scss";

/* FOOTER ------------------------------------------------------------------ */
footer {
width:420px;
margin:48px auto;

p {
font-size:12px;
}
}

/* FORMS ------------------------------------------------------------------- */
form {

}

dl.form {

}

dl.form dt {

}

dl.form dt label {

}

dl.form dd {

}

dl.form dd input.text_field {
width:100%;
background:rgba(0, 0, 0, 0.05);
box-sizing:border-box;
font-family:inherit;
font-size:inherit;
line-height:1;
border:1px solid rgba(0, 0, 0, 0.05);
border-radius:3px;
padding:6px;
color:inherit;
}

dl.form dd input:focus {
outline:none;
box-shadow:0 0 6px rgba(0, 0, 0, 0.1);
}

dl.form dd textarea.text_area {
width:100%;
background:rgba(0, 0, 0, 0.05);
box-sizing:border-box;
font-family:inherit;
font-size:inherit;
line-height:1;
border:1px solid rgba(0, 0, 0, 0.05);
border-radius:3px;
padding:6px;
color:inherit;
}

dl.form dd textarea:focus {
outline:none;
box-shadow:0 0 6px rgba(0, 0, 0, 0.1);
}

dl.form dd textarea.code {
font-family:Consolas, monospace;
}

/* FLASH ------------------------------------------------------------------- */
.flash {
position:absolute;
top:24px;
right:24px;
height:24px;
background:rgba(0, 0, 0, 0.1);
border:1px solid rgba(0, 0, 0, 0.2);
border-radius:3px;
box-shadow:0 0 3px rgba(0, 0, 0, 0.5);

p {
padding:0 12px;
font-size:12px;
font-weight:bold;
}
}

.notice {
color:rgba(0, 0, 0, 0.8);
text-shadow:1px 1px 1px rgba(0, 0, 0, 0.2);
}

.alert {
color:rgba(200, 0, 0, 0.8);
text-shadow:1px 1px 1px rgba(0, 0, 0, 0.8);
}
Loading

0 comments on commit 4649356

Please sign in to comment.