Skip to content

Content Management System for the UofA Libraries website. Built on Comfy Mexican Sofa.

Notifications You must be signed in to change notification settings

ualbertalib/library-cms

Repository files navigation

library-cms

This is the CMS for the University of Alberta Libraries website. It uses Comfy Mexican Sofa.

Applications

  • MariaDB database for CMS

Development environment

  • Ruby 3.1.4
  • Rails 7.0.x
  • MariaDB 5.5
  • Docker and docker-compose
  • yarn
  • nodejs v18+

Requirements

File attachments are handled by ActiveStorage. You will need to copy over database migrations by running rails active_storage:install To resize attached images you'll need to have ImageMagic installed. Pagination is handled by either Kaminari or WillPaginate. Make sure you have one defined in your Gemfile.

Setting up the Application

  1. git clone [email protected]:ualbertalib/library-cms.git
  2. cd library-cms
  3. bin/setup
  4. bin/dev
  5. visit http://localhost:3000 and you will see the library homepage.
  6. If you need to visit the admin section (http://localhost:3000/admin) - You'll be prompted to enter username and password (use the ones in your config/secrets.yml, which by default are 'admin' and 'mysecretpassword')

Testing

To run the tests for the library-cms application, you can use the following command once your application has been setup from above:

bundle exec rails test

This will execute all the test cases and provide you with the test results.

NOTE: We preload the test database with all the seed CMS data (pages/layouts/etc) before tests are ran. This happens only once. So if you make a change to the CMS seed data, you must drop the test DB for your changes to be reflected in the test database.

Features

image

image

image

image

About

Content Management System for the UofA Libraries website. Built on Comfy Mexican Sofa.

Resources

Stars

Watchers

Forks

Packages

No packages published