next-l enju 第1回開発ワークショップ資料
TRANSCRIPT
- 1. Next-L Enju Next-L Enju 1 2011 1 28
2.
- / /
- / / / / / / / / / / / / NDL /
3. Next-L Enju 4. Web
- EnjuWebAPI
WebAPI
- Enju
5. 6.
- ASP
7. 252000
- 15Heroku + 10SolrAmazon EC2
8.
- ->
9. 10. Next-L Enju 11. Enju 12. Enju
- Manifestation
- FRBR
13. enju_leaf Item
- FRBR
14. enju_leaf Patron
15. enju_leaf 16.
- UnixOS
17. Ruby 1.9.2 18. PostgreSQL 8.4
- MySQL 5.0SQLite3
Apache Solr
- 3.5.0master
Ruby on Rails 3.1.3
- enju_leaf 1.13.2
19.
- $ ssh 192.168.11.84 -l kosuke
20. $ cd 21. $ mkdir tanabe tanabe 22. $ cd tanabe 23.
- $ ssh 192.168.11.84 -l kosuke
24. $ cd tanabe/enju_leaf 25.
- master
- Enju
26. 27. 1.0
- Enju
28. 29.
- Rails
- scaffold
30. public master
31. Next-L Enju 32. Next-L Enju
- development
- Enju
wiki productiondevelopment 33.
- $ git clone git://github.com/nabeta/enju_leaf.git
34. $ cd enju_leaf 35. $ ls -la 36.
- app/models
app/views
app/controllers
- Web
37.
- app/models/patron.rb
38. app/views/patrons/index.html.erb 39. app/views/patrons/show.html.erb 40. app/views/patrons/new.html.erb 41. app/views/patrons/edit.html.erb 42. app/views/patrons/_form.html.erb 43. app/controllers/patrons_controller.rb 44. 45.
- Gemfile
- Enju
46. Enju db/migrate
47. 48. 49.
- solr/
50. solr/conf 51.
52.
- spec/fixtures/patrons.yml
53. 54.
- ->manifestation
55. ->item 56. ->patron 57. ->user 58.
- 255 -> string
59. 255 -> text 60. -> integer 61.
62. $ rails g migration AddStudentYearToPatron student_year:integer
- student_year patron
63. student_year $ rake db:migrate 64.
- vi app/views/patrons/_form.html.erb
65. vi app/views/patrons/show.html.erb 66.
- vi app/models/patron.rb
67.
- searchable do
- integer :student_year
end 68. $ rails c >> Patron.reindex 69.
70. student_year_i: 2012