Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hachi8833/rails4.0_template
Rails 4.0 application template
https://github.com/hachi8833/rails4.0_template
Last synced: 13 days ago
JSON representation
Rails 4.0 application template
- Host: GitHub
- URL: https://github.com/hachi8833/rails4.0_template
- Owner: hachi8833
- Created: 2014-01-05T07:32:31.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-27T15:08:00.000Z (about 10 years ago)
- Last Synced: 2024-11-14T03:48:10.723Z (2 months ago)
- Language: Ruby
- Size: 770 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Application Template for Rails 4.0.2
This Rails 4.0 Application Template is just for private use, and is conscious of the future Rails 4.1.
## Organization
* configure .gitignore
* configure Gemset
** Ruby 2.1
** Rails 4.0.2
* Install Gem into vendor/bundle
* configure application.rb
* configure secret_token.rb
* configure Japanese locale
* configure application.js
* configure HAML
* configure Bootstrap3/Font-Awaresome
* configure SimpleForm
* configure kaminari
* configure mysql
* configure RSpec
* configure spring/guard
* configure git flow以下のライブラリを事前にインストールしておくこと
* libxml2 libxslt libiconvただしMacとHomebrew 0.9だとlibiconvがうまく入らないことがあるので、以下のような感じでインストール
* brew install libxml2 libxslt
* brew link libxml2 libxslt* wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
* tar xvfz libiconv-1.13.1.tar.gz
* cd libiconv-1.13.1
* ./configure --prefix=/usr/local/Cellar/libiconv/1.13.1
* make
* sudo make install## Usage
### 作成方法
1. プロジェクト用のディレクトリにRakefileを置く
2. rake new appname=アプリ名これでデータベース作成も含めてすべて自動で実行される
(newのかわりにadd、createでもよい)### 削除方法
1. rake kill appname=アプリ名
(killのかわりに clear、remove、delete、destroyでもよい)
これでデータベースも含めてすべて削除される