Web content framework. http://wayground.ca/
A somewhat generic platform for handling web content management (CMS), contact relation management (CRM), democracy tools, calendaring, open data, content aggregation, etc.
By default, we are using PostgreSQL as the database backend, so you will need an installation of that (although not necessarily on the same computer/server/host).
These commands should be issued from the project directory (e.g.,
~/projects/wayground). Depending on your ruby setup, you may need to prefix the
gem calls that follow with
Make sure your ruby gem system is up to date:
gem update --system
Make sure you have Bundler for installing gems:
gem install bundler
To install Passenger for running ruby websites with Apache:
gem install passenger
Put the entire project directory where you want it on your web server’s file system.
config/database.yml and edit that file to use the appropriate configuration for your database. The default will use PostgreSQL. Using another database may require some changes to the migration files and may cause problems if the database doesn’t handle
hash column types.
config/initializers/secret_token.rb, then edit that file to use your own, made-up (random), secret key.
config/initializers/omniauth.rb, then edit that file to use your own external service authentication codes.
From within the project directory, run the following command to ensure you have the required gems (and the required versions of those gems):
Run this command to setup the required data tables in your database:
bundle exec rake db:migrate RAILS_ENV#production
Set your web server’s configuration to point to the project directory (either for the server as a whole, or for the specific domain you want to be served). Restart your web server, if necessary, for it to start serving your new site.
Go to your new site and follow the “Sign Up” link to create your first user account on the site. The first user will automatically have admin privileges and can assign privileges to other users.
The overall look of the site is defined by the html template:
and by the stylesheets in:
Be careful when editing
.erb files that you don’t break the ruby code embedded in them. The ruby code in .erb files is wrapped in “<% … %>”.
Portions of this code are taken from, or modified from, other open source projects:
- User access cucumber feature tests derived from Clearance
Wayground is released under:
The MIT License (MIT)
Copyright © 2013 Grant Neufeld.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.