GreekSolution Simple CMS in Rails.
Rails version: 3.2.12
Ruby version: 1.9.3
Simple CMS is a nice project to be used as a base for more complex projects. I used as much as I could the best practices as I know and understand them and it is also in HTML5.
I've build it for creating some simple sites and for helping some friends learn / mess around with Ruby on Rails.
I also tried to keep it as simple as possible and I'll add more functionality in the future, probably using Rails Engines. It's also a nice project for beginners to explore and learn some basic things for Rails. If you have ideas, feedback or you need help, send me an email at [[email protected]] (mailto:[email protected]).
Follow the steps below to install and use it:
git clone https://github.com/johndel/Rails-Simple-CMS.git
- Run
bundle install
to install the necessary gems - Create a database.yml or change the config/database.yml.example to config/database.yml file and fill in the credentials (beware of the socket! It depends on OS, I am using ubuntu so this is what it fits for me)
- Open the db/seeds.rb file and change the User.create to fit your needs (set an email and password for login to the administration panel)
- Type
rake db:create:all
to create your databases - Type
rake db:setup
to create database schema and load seed (if you loaded gscms.sql it already has a user example) - Run
rails s
orpassenger start
(install the passenger gem) to begin server - Go to localhost:3000 and check if everything is working great! Your site is served :)
- For admin login, go to localhost:3000/admin/login and type your credentials
You can also load the schema from mysql (like the old days if you missed them). I've included gscms.sql file in the root path of the app, just type:
mysql -u username -ppassword -h localhost database_name < gscms.sql
or
use any other shiny GUI MySQL interface - database interface to import it. Credentials of the file:
Email: [email protected]
Password: testme
For production, be sure to write rake assets:precompile
first or if you are deploying with capistrano, let load "deploy/assets"
in the config/deploy.rb .
Check Wiki Pages for more info.
Feel free to use it as you like. I'd love to hear your comments about. Thank you!