Multi Blog Site built on Rails 4
- Ruby 2+
- Postgresql 9.4+
- Nodejs 0.10+
-
Install Ruby
-
Install Postgresql
-
Install node.js
-
Copy
config/database.yml.sample
cp config/database.yml.sample database.yml
-
Edit
config/database.yml
-
Run setup script
bin/setup
The bin/setup
script handles most of the setup but it may fail due to
invalid database configuration. After changing the database configuration
the following command can be run:
- Setup database, run migrations, and run seeds
rake db:create db:migrate db:seed
Alternatively, bin/setup
can be run again.
The following command can be used to install new Ruby dependencies:
- Install
bundler
dependenciesbundle install
Alternatively, bin/setup
can be run to install bundler
dependencies.
-
Start the rails server
rails s
-
Visit the site in the browser
open localhost:3000
rake test
Write tests
Test models, helpers and some integration tests