Skip to content
forked from adamlwalker/hsfc

RubyforGood Project for the Humane Society of Fairfax County

Notifications You must be signed in to change notification settings

rubyforgood/hsfc

 
 

Repository files navigation

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 rake 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

Adoption form data:

To load the production questions and other seeds, etc, into your database, run:

rake db:submission_data_load

(To delete data from the application tables, run: rake db:submission_data_destroy)

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 71.0%
  • HTML 23.9%
  • CSS 4.7%
  • Other 0.4%