Rails 應用快速開發工具:RailsBricks

jopen 11年前發布 | 13K 次閱讀 Ruby開發 RailsBricks

RailsBricks 允許你快速的創建 Rails 應用,通過自動安裝任務和配置有用的常用 gems。

Authentication


Most web apps require some kind of authentication. RailsBricks takes care of implementing this for you and lets you chose between two schemes using the Devise gem: authentication with a username or with an email address. Trivial functionalities like "sign up", "confirm your account", "sign in", "forgotten password", etc, are generated automatically. On top of that, you also get an administration zone to manage your users.

User Interface


Build a stunning UI even faster! RailsBricks creates the common visual parts of a web app such as a navbar, pop up alerts, a main content area and a footer. Several different UI built on top of Bootstrap 3 are proposed. Easily override the default Bootstrap 3 settings using SCSS variables. The Font Awesome gem is also included.

Send Emails


Setting up your email parameters is easy. Enter your values such as your SMTP server address, port and user credentials in the app creation wizard and RailsBricks will generate your development and production initializers. If you use the Devise gem for authentication, emailing your users confirmation links and passwords reset links will use these settings.

Keep Secrets


By using and configuring the Figaro gem for you, your secrets are not shared. Your initializers are configured to use ENV variables stored in an application.yml file that will not get included in your Git repository. Application secret tokens are also not shared and get generated individually by your app. This is especially useful if you develop open source Rails apps.

Database Tool


RailsBricks generates your initial migrations with default data (such as an admin user) and offers you to create test users. As you build your app and add features, RailsBricks automates drop, migrate and seed operations by wrapping them in one single command line statement: rbricks -r. Choose your favorite development database engine: SQLite or PostgreSQL.

Popular Gems


Whether you need to implement paging or display human readable URL's instead of id's, several great gems are included in RailsBricks generated apps: Figaro, FriendlyId, Kaminari, Font Awesome, Devise (optional), Redcarpet and Bootstrap for Sass. Heroku production gems, PostgreSQL and Rails 12factor, are also included by default for easy deployment.

Blog and contact form


RailsBricks can generate the necessary resources for a Post object (controllers, user views and admin views) so you can easily implement a blog, a news page, a product update, a... well, you get it! It even includes the Redcarpet gem so you can edit your posts using the Markdown syntax! Also, a contact form is such a common feature that RailsBricks will create one for you if you so choose.

Set Up Git


The RailsBricks wizard offers to create a local Git repository for you and generates an augmented .gitignore file. If you opt in to create a local repository, you will also be prompted for an optional remote Git repository URL. Your initial commit is done for you and optionally gets pushed to your remote repository.

Actively Maintained


RailsBricks is actively maintained and new features are constantly in development. RailsBricks is free and open source, too! Have a look at the latest news to keep up to date with the most recent additions and follow @railsbricks on 推ter to stay in the loop. Don't hesitate to share your thoughts, ideas, comments and questions. You created something awesome with RailsBricks? Please do tell and it will be showcased!

特性:

  • 使用 rbricks -n  替代 rails new 命令

  • 包括有用的 gems 和設置

  • 為你的 web 應用提供不同的 UI 選擇

  • 創建和配置一個 Devise 身份認證模式

  • 為一個博客,添加聯系表單等等的必要資源

  • 構建一個管理空間

  • 配置你的 mailers

  • 初始化本地和遠程 git 庫

  • 等等加速你 Rails 應用開發的特性

項目主頁:http://www.baiduhome.net/lib/view/home/1414633688059

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!