/cs362-coad-resources

Central Oregon COAD Resources system. A case study in legacy software, for CS362 Software Engineering II.

Primary LanguageRuby

Central Oregon COAD

This is the GitHub repository for the Central Oregon Community Organizations Active in Disaster (COAD) help service system. It connects people in need with resources made available by members of Community Organizations Active in Disaster.

Development

Clone the repository:

git clone git@github.com:osu-cascades/coad-resources.git

This is a Rails application that uses SQLite in development and PostgreSQL in production.

Install the dependencies:

gem install bundler
bundle install

Next, set up the database:

rails db:setup

If you want, you can create some seed data in the database:

rails db:seed

Start the app:

rails server

Testing

This project uses RSpec for testing.

rspec

You can also run a specific directory of tests or file by supplying its name, like so:

spring rspec spec/path/to/file_spec.rb

Deployment

This application uses heroku for deployment. Some useful commands to know can be found below.

Set up a heroku app to deploy to:

heroku git:remote -a coad-resources-staging
heroku git:remote -a coad-resources

Rename them staging and production:

git remote rename coad-resources-staging staging
git remote rename coad-resources production

Deploy to a heroku app:

git push staging

Migrate the rails database of a heroku app:

heroku run rails db:migrate --remote staging

Seed the rails database of a heroku app:

heroku run rails db:seed --remote staging

Set environment variables (see .env.example for expectations):

heroku config:set FOO=bar

Production Dependencies

PostgreSQL Email Server (Gmail) Recaptcha

Data model

erd

© 2020 James Martinez, Ryder McDowell. All rights reserved.