madtypist / hsfc

RubyforGood Project for the Humane Society of Fairfax County

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Humane Society of Fairfax County

This is the home of the Ruby for Good project to redo the old site for the Humane Society of Fairfax County.

Issue tracking can be found here.

Getting Started:

bundle install
rake db:create db:migrate
pg_restore db/hsfc_rubyforgood.dump

Environment variables

cp .env-sample .env

Look for Petfinder credentials in Slack channel and add to .env file.

cms-admin credentials

After booting up the server with rails s navigate to localhost:3000/cms-admin/login

username: admin@cmsfortress.com
password: 1234qwer

or if that doesn't work you may need to use:

username: admin@rubyforgood.com
password: password

Once you have logged in you will need to delete the default site and creating a new site called localhost. You can find the page to make these changes by clicking settings button in the top navbar.

With a new localhost site created you can bootstrap it with fixture files with the following command.

rake comfortable_mexican_sofa:fixtures:import FROM=example.local TO=localhost

Managing non-application code (CMS Fixtures):

When you login for the first time, create a site called 'localhost' before attempting the import.

After pulling latest changes from the remote you need to import the fixture files into your local db.

rake comfortable_mexican_sofa:fixtures:import FROM=example.local TO=localhost

When you want to push your changes up to Github and PR in order for others to see and use your changes export.

rake comfortable_mexican_sofa:fixtures:export FROM=localhost TO=example.local

The Carousel

Upload new photos via the Admin portal. The carousel will cycle through any images with the category 'slides'.

Contributing:

Branch off of master:

git checkout -b <name of your feature branch>

Make changes, commit, then push your changes.

rake db:dump

git push

Submit PR into master.

About

RubyforGood Project for the Humane Society of Fairfax County


Languages

Language:Ruby 74.0%Language:HTML 20.9%Language:CSS 4.5%Language:JavaScript 0.5%Language:CoffeeScript 0.1%