SounderLiu / intjuice

Redistributable CourseWare Sharing System for Chinese Universities

Home Page:www.intjuice.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IntJuice

欢迎来到IntJuice项目。ij,两个程序员最常用的循环变量。这两个字母打头的单词组成课件交流系统的开发代号,IntJuice。

IntJuice要构建一个可分发的面向**高校的课件交流系统。这个系统可配置地与云端交换资源索引,从而实现云端与客户端资源的互补互惠。

##目录结构

特殊目录

有几个特殊目录用来存储一些用于开发资料

您可以继续添加一些对别人或自己有用的文件以及目录

  |-- 工程设计  //需求分析一类文件
  |   |-- ...
  |-- 浓汤 //一些可以放在手边参考的资料
  |   |-- Markdown.pdf //写readme.md时用到

Rails 目录结构

其余目录是按照rails 3的默认工程结构组织的

  |-- app
  |   |-- assets
  |       |-- images
  |       |-- javascripts
  |       `-- stylesheets
  |   |-- controllers
  |   |-- helpers
  |   |-- mailers
  |   |-- models
  |   `-- views
  |       `-- layouts
  |-- config
  |   |-- environments
  |   |-- initializers
  |   `-- locales
  |-- db
  |-- doc
  |-- lib
  |   `-- tasks
  |-- log
  |-- public
  |-- script
  |-- test
  |   |-- fixtures
  |   |-- functional
  |   |-- integration
  |   |-- performance
  |   `-- unit
  |-- tmp
  |   |-- cache
  |   |-- pids
  |   |-- sessions
  |   `-- sockets
  `-- vendor
      |-- assets
	  `-- stylesheets
      `-- plugins

app Holds all the code that's specific to this particular application.

app/assets Contains subdirectories for images, stylesheets, and JavaScript files.

app/controllers Holds controllers that should be named like weblogs_controller.rb for automated URL mapping. All controllers should descend from ApplicationController which itself descends from ActionController::Base.

app/models Holds models that should be named like post.rb. Models descend from ActiveRecord::Base by default.

app/views Holds the template files for the view that should be named like weblogs/index.html.erb for the WeblogsController#index action. All views use eRuby syntax by default.

app/views/layouts Holds the template files for layouts to be used with views. This models the common header/footer method of wrapping views. In your views, define a layout using the layout :default and create a file named default.html.erb. Inside default.html.erb, call <% yield %> to render the view using this layout.

app/helpers Holds view helpers that should be named like weblogs_helper.rb. These are generated for you automatically when using generators for controllers. Helpers can be used to wrap functionality for your views into methods.

config Configuration files for the Rails environment, the routing map, the database, and other dependencies.

db Contains the database schema in schema.rb. db/migrate contains all the sequence of Migrations for your schema.

doc This directory is where your application documentation will be stored when generated using rake doc:app

lib Application specific libraries. Basically, any kind of custom code that doesn't belong under controllers, models, or helpers. This directory is in the load path.

public The directory available for the web server. Also contains the dispatchers and the default HTML files. This should be set as the DOCUMENT_ROOT of your web server.

script Helper scripts for automation and generation.

test Unit and functional tests along with fixtures. When using the rails generate command, template test files will be generated for you and placed in this directory.

vendor External libraries that the application depends on. Also includes the plugins subdirectory. If the app has frozen rails, those gems also go here, under vendor/rails/. This directory is in the load path.

About

Redistributable CourseWare Sharing System for Chinese Universities

www.intjuice.com