247行的博客系统

跟着Scott Davis看了一下Grails

247行代码就可以实现一个完整的博客系统!

看来javaeye用rails创业, 从成本来说真是性价比超高。

 

D:\myeclips-workbench\blogito>grails stats
Welcome to Grails 1.1.1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: C:\grails-1.1.1

Base Directory: D:\myeclips-workbench\blogito
Running script C:\grails-1.1.1\scripts\Stats.groov
Environment set to development

        +----------------------+-------+-------+
        | Name                 | Files |  LOC  |
        +----------------------+-------+-------+
        | Controllers          |     2 |   112 |
        | Domain Classes       |     2 |    38 |
        | Tag Libraries        |     3 |    59 |
        | Unit Tests           |     7 |    28 |
        | Integration Tests    |     1 |    10 |
        +----------------------+-------+-------+
        | Totals               |    15 |   247 |
        +----------------------+-------+-------+

 

运行前需要安装searchable 插件(用到了Apache Lucene 搜索引擎):

grails install-plugin searchable

 

你可能感兴趣的:(apache,搜索引擎,Lucene,grails,Rails)