2016年5月30日月曜日

2016年5月22日日曜日

GoLang: WebFramework Revel


$ go get github.com/revel/revel
go get github.com/revel/cmd/revel

$ revel new github.com/myaccount/myapp

$ vim myapp/conf/app.conf
  http.port = 3000

$ revel run github.com/myaccount/myapp


2016年5月21日土曜日

Go Lang: Web Framework

◆Gin
https://gin-gonic.github.io/gin/
https://github.com/gin-gonic/gin

◆Revel
http://revel.github.io/
https://github.com/revel/revel

◆Iris
http://iris-go.com/
https://github.com/kataras/iris

Technical Development Guide

Technical Development Guide


Ruby On Ralis : Active Admin for Rails5



https://github.com/activeadmin/activeadmin

$ vim Gemfile
gem 'activeadmin', github: 'activeadmin/activeadmin'
gem 'devise', github: 'plataformatec/devise'
gem 'kaminari',   github: 'amatsuda/kaminari', branch: '0-17-stable'


$ rails destroy devise:install
$ rails g active_admin:install

$ rails c
pry(main)> AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password')

$ rails db:migrate

$ rails generate active_admin:resource Twine

$ rails s

$ rails console -e production
pry(main)> AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password')

$ rails g active_admin:assets

$ vim config/initializers/kaminari.rb
Kaminari.configure do |config|
  config.page_method_name = :per_page_kaminari
end

2016年5月17日火曜日

RubyOnRail : Rails 5.0.0 rc release.

Rails 5.0.0 rc test.

【test site】

https://hhoshina.info/


【Point Memo】

1. Graph(kickchart)
 app/views/layouts/application.html.erb
 <%= javascript_include_tag "//www.google.com/jsapi", "chartkick" %>

 config/environments/production.rb
 config.assets.compile = true 

2. twitter-bootstrap 
 Gemfile
 gem 'twitter-bootstrap3-rails'

 $ rails g bootstrap:install static
 $ rails g bootstrap:layout application fluid

 3. google map 




fd-find

 $ sudo apt install fd-find $ fdfind 石