-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
96 lines (56 loc) · 1.56 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
== Ruby on Rails Forum
This is an rails project, developed for the 'Ruby on rails' course in FMI
== Author
Evgenia Manolova
== Instalation
Make sure, that you have rails and ruby gems installed on the mashine you want to run the application:
$ gem -v
$ rails -v
If not - download and install rubygems from here: http://rubyforge.org/frs/?group_id=126
and then:
$ sudo gem install rails
Checkout the application sourse:
$ svn co http://svn2.xp-dev.com/svn/rr_forum/trunk forum
$ cd forum
Install the needed gems
$ sudo gem install sqlite3-ruby
$ sudo gem install faker
$ sudo gem install RedCloth
$ sudo rake gems:install
Set up database
$ rake db:migrate
$ rake db:populate
Start the forum
$ ./script/server -d
That's it.
Go to http://localhost:3000/ in your browser and try the RR Forum :)
== Running tests
If you wanr to run the tests, you need to install some more gems:
$ cd $RR_FORUM_HOME # (cd to the forum home directory)
$ sudo gem install rspec
$ sudo gem install rspec-rails
$ sudo gem install factory_girl
$ sudo gem install webrat
$ sudo gem install launchy
Set up the test database
$ rake db:test:prepare
And finally - run the tests
$ spec ./spec
== Gems
-- required gems for the application
rails
sqlite3-ruby
faker
RedCloth
-- gems, needed for the test module
rspec
rspec-rails
factory_girl
webrat
launchy
== References
http://rubyonrails.org/
http://api.rubyonrails.org/
http://www.railstutorial.org/
http://github.com/thoughtbot/factory_girl
http://www.railstutorial.org/chapters/sign-up#sec:webrat