Sha256: 3eb05a6219153e702d9647f4c4bd8977f9d2527147e3800b4cb748caa6961a2b

Contents?: true

Size: 1.94 KB

Versions: 1

Compression:

Stored size: 1.94 KB

Contents

# FastUI

FastUI is a Ajax Ruby framework for Rapid Development enterprise-level Web application style interfaces.
In Fastui you only have to write the domain classes in plain Ruby to get a web application ready for production.

This project rocks and uses MIT-LICENSE.

## Configuration

For example, the syntax for view like this:
By default your view is configured in the file config/initializers/fastui_config.rb.
```ruby
  Fastui::View.instance.config do |conf|
    conf.win :m_list, title: '数据字典', window_kind: 'maintain' do |w|
      w.tab :m_list, title: '枚举', entity:'Fastui::MList', members:[
        {name:'id', title: 'ID', datatype:'VNumber', readonly: true},
        {name:'title', title: '标题', datatype:'VText'},
        {name:'print_text', title: '打印文本', datatype:'VText'},
        {name:'name', title: '标识', datatype:'VText'}
      ]
      w.tab :m_list_item, title:'枚举项', entity:'Fastui::MListItem', included_tab: 'm_list', members:[
        {name:'id', title: 'ID', datatype:'VNumber', readonly: true},
        {name:'title', title: '标题', datatype:'VText'},
        {name:'print_text', title: '打印文本', datatype:'VText'},
        {name:'name', title: '标识', datatype:'VText'}
      ]
    end
  end
```

Generates a view that looks like this:

![Image Alt](https://github.com/songgz/fastui/raw/master/doc/fastui_grid.jpg)

![Image Alt](https://github.com/songgz/fastui/raw/master/doc/fastui_form.jpg)

## Getting Started

Fastui is released as a Ruby Gem. The gem is to be installed within a Ruby
on Rails 3 application. To install, simply add the following to your Gemfile:

    gem 'fastui'

After updating your bundle, run the installer
```shell
  $> rails generate fastui:install -s
  $> rake db:migrate
  $> rails generate fastui:init
  $> rails server
```
Visit http://localhost:3000/fastui and log in using:

Voila! You're on your brand new FastUI main window.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fastui-0.1.3 README.md