Code Monkey home page Code Monkey logo

beacon's Introduction

# WMU Beacon

The story so far:

$ rails new beacon -m andreasronge.github.com/neo4j/rails.rb $ cd beacon $ rvm –rvmrc –create jruby@beacon

add the following to Gemfile:

gem ‘devise’, “2.0.4” gem ‘devise-neo4j’, :path => “/Users/chrisfitzpatrick/code/devise-neo4j” gem “neo4jrb-paperclip”, :require => “neo4jrb_paperclip” gem “aws-s3”, :require => “aws/s3” gem ‘omniauth-google-oauth2’ gem ‘marc’ gem “haml-rails”

group :test, :development do
   gem "factory_girl_rails"
   gem 'steak'
   gem 'rspec-rails'
   gem 'rcov', '~> 0.9.11'
   gem 'neo4j-admin'
end

group :assets gem ‘twitter-bootstrap-rails’

bundle

add to config/application.rb

config.generators do |g|
      g.orm             :neo4j
      g.test_framework  :rspec, :fixture => false
      g.fixture_replacement :factory_girl, :dir=>"spec/factories"
      g.stylesheets false
      g.view_specs false
      g.helper_specs false
end

rm public/index.html

rails g rspec:install rails g steak:install

rails g bootstrap:install rails g bootstrap:layout application fluid

rails generate devise:install rails generate devise User

rails generate scaffold Document title:string date:date slug:string summary:string –indices title date summary –has_n creators:Person items:Item sections:Section

rails g scaffold Item identifier:string url:string format:string –indices identifier format rails g scaffold Section title:string –has_n pages:Page –has_one Document rails g scaffold Page page_number:Float –has_one Document Section –has_n annotations:Annotation rails g scaffold Annotation title:string content:string –has_n pages:Page

rails g scaffold Person name:string title:string –indices name title –skip-stylesheets

rails g scaffold Subject subject_type:string term:string –indices subject_type term –has_n concepts:Concept places:Place things:Thing events:Event works:Work corporateBodies:CorporateBody Persons:Person –skip-stylesheets

rails g scaffold Concept name:string –indices name –skip-stylesheets rails g scaffold CorporateBody name:string –indices name place –skip-stylesheets rails g scaffold Event name:string –indices name –skip-stylesheets rails g scaffold Place name:string –indices name –skip-stylesheets rails g scaffold Thing name:string –indices name –skip-stylesheets

Now do a rails g bootstrap:themed for each of the scaffolds.…

rails g bootstrap:themed Users -f rails g bootstrap:themed Documents -f rails g bootstrap:themed Items -f rails g bootstrap:themed Sections -f rails g bootstrap:themed Pages -f rails g bootstrap:themed Annotations -f rails g bootstrap:themed People -f

rails g bootstrap:themed Subjects -f rails g bootstrap:themed Concepts -f rails g bootstrap:themed Items -f rails g bootstrap:themed CorporateBodies -f rails g bootstrap:themed Events -f rails g bootstrap:themed People -f rails g bootstrap:themed Places -f rails g bootstrap:themed Things -f

beacon's People

Contributors

cfitz avatar

Watchers

 avatar  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.