Giter Club home page Giter Club logo

website's Introduction

Twelve Twenty;

Twelve Twenty is a small Startup from Amsterdam. We make apps you didn't know you needed.

We decided to open source the development of our new website because we hope to help other people by showing our workflow.

Development setup

The website is built using Ruby on Rails 3.2.8. We use Jenkins to build to publish the master branch to our server.

We develop the website in the develop branch, we use Git Flow. The master branch contains stable releases

How to run the project

Ensure you have the latest version of Ruby I'm using 1.9.3p194

$ ruby -v
# ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.0.0]

If you don't have the latest consider installing rbenv and Ruby build

First install Homebrew to install ImageMagic (if you haven't got it already)

$ ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)

Then install ImageMagic

$ brew install imagemagick
# ==> Installing imagemagick dependency: pkg-config
# ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-0.27.mountainlion.bottle.tar.gz
# [...]

Open the terminal and install bundler

$ gem install bundler

# Successfully installed bundler-1.1.5
# 1 gem installed
# Installing ri documentation for bundler-1.1.5...
# Installing RDoc documentation for bundler-1.1.5...

Clone the project from Github using this command:

git clone git://github.com/TwelveTwenty/website.git

Change into the new directory, then run bundle install to install al dependencies

$ bundle install
# Fetching gem metadata from https://rubygems.org/.......
# Using rake (0.9.2.2) 
# Installing i18n (0.6.0) 
# Using multi_json (1.3.6) 
# Installing activesupport (3.2.8) 
# [... etc ...]
# Installing sqlite3 (1.3.6) with native extensions 
# Installing uglifier (1.2.7) 
# Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
# Post-install message from rdoc:
# Depending on your version of ruby, you may need to install ruby rdoc/ri data:
# 
# <= 1.8.6 : unsupported
#  = 1.8.7 : gem install rdoc-data; rdoc-data --install
#  = 1.9.1 : gem install rdoc-data; rdoc-data --install
# >= 1.9.2 : nothing to do! Yay!

Running in development mode

Run the rake migrations to update your local database

$ rake db:create
$ rake db:migrate
$ rake db:seed	

Then start the rails server with this command:

$ rails server
# => Booting WEBrick
# => Rails 3.2.8 application starting in development on http://0.0.0.0:3000
# => Call with -d to detach
# => Ctrl-C to shutdown server
# [2012-08-13 10:23:11] INFO  WEBrick 1.3.1
# [2012-08-13 10:23:11] INFO  ruby 1.9.3 (2012-04-20) [x86_64-darwin12.0.0]
# [2012-08-13 10:23:11] INFO  WEBrick::HTTPServer#start: pid=6818 port=3000

Open your web browser at 127.0.0.1:3000 to view the project

Running in production mode

Run these rake tasks (I'm using the asset pipeline)

$ rake db:create RAILS_ENV=production
$ rake db:migrate RAILS_ENV=production
$ rake assets:precompile RAILS_ENV=production
$ rake db:seed RAILS_ENV=production

Then start the rails server with this command:

$ rails server --e=production                                                                                                         develop [fee530a] modified untracked
# => Booting WEBrick
# => Rails 3.2.8 application starting in production on http://0.0.0.0:3000
# => Call with -d to detach
# => Ctrl-C to shutdown server
# [2012-08-13 12:27:46] INFO  WEBrick 1.3.1
# [2012-08-13 12:27:46] INFO  ruby 1.9.3 (2012-04-20) [x86_64-darwin12.0.0]
# [2012-08-13 12:27:46] INFO  WEBrick::HTTPServer#start: pid=12697 port=3000

Open your web browser at 127.0.0.1:3000 to view the project

website's People

Contributors

jankeesvw avatar epologee avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.