Giter Club home page Giter Club logo

shelter-assist's Introduction

Shelter Assist

Be sure to edit this file as things change…

Current mental model and direction of development:

A Rescue is an organization made up of People who are Volunteers and/or Fosters.

Anyone caring for an Animal is a Foster. Fosters must have a Home. Animals must have a Home.

An Animal will move from one Home to another and that may change their Foster.

That means that members of an organization who are administrators, are Fosters. They may have a shelter where an animal is housed, which is the animal's Home. Or those administrators may be housing an animal at their actual house, which will still be the animal's Home.

Members of an organization who volunteer to help with transporting animals from one place to another, would also be a Foster. And whatever locations are used for transporting to and from should be recorded as Homes with a Foster associated to each one.

People outside of the organization can signup to become a Foster where the system should record their information and create:

  1. their Foster record
  2. their Home record
  3. their Application to become a Foster.

When an Adoption event occurs, the Animal may change Fosters and/or Homes but would no longer have a Need for Adoption.

Animal Needs

The system should enable admins to manage the Needs of 1 or more Animals for a Rescue. An Animal may need to move from one Home to another quickly. Multiple animals may need to move from one Home to another by a certain date.

The system should help admins make decisions about what Fosters are available and appropriate (e.g. barring exclusions) for the Animal(s) Needs.

Exclusions

Fosters may have Exclusions that would prevent them from being a Foster. Recording these exclusions could be automatic and/or could be manually assigned by an admin.

Homes may have Exclusions that would prevent them from housing an Animal. Recording these exclusions could be automatic and/or could be manually assigned by an admin.

Foster Communication

Different Fosters respond to the needs of an organization differently. Some work well with SMS, others with email, still others work best with phone calls. The system should help admins or Fosters themselves manage this.

The system should provide a way to send a message about Animal Needs to a group of Fosters in the manner most appropriate to the Foster.

Each Foster should have an admin (or other role) primary point of contact with whom the Foster would have a good relationship.

Likely to change…

Fosters currently have a boolean admin column. It's likely this should instead become some way of managing a "role".

Records like a Person who is a Foster and Application will likely need a way of tracking status (approved, rejected, etc.).

Multitenancy should be added ASAP. There are currently 2 organizations looking to use this software. Data for one Rescue should not be visible to other Rescues.

Set up

All commands in code font are to be copied and pasted onto command line.

  1. git clone https://github.com/rubyforgood/shelter-assist.git
  2. brew install rbenv
  3. rbenv install 3.0.2
  4. rbenv init
  5. rbenv local 3.0.2
  6. Close the CLI tab and open a new one
  7. brew install yarn
  8. cd path/to/shelter-assist
  9. brew install postgresql (idk, bundle didn't work until I installed this first)
  10. bundle install
  11. yarn install
  12. brew services restart postgresql
  13. bin/rails db:create
  14. bin/rails db:migrate RAILS_ENV=development
  15. bin/dev

Optional ASDF-VM Support

Note: a .tool-versions file exists which contains the current supported ruby version

  • asdf plugin-add ruby
  • asdf install

Running the app

rails s

Design

Design system Ant Design
Components in Figma File Ant Design Open Source Figma Library
Homepage Illustrations unDraw illustrations, free for commercial use.
Fonts Used Speech Bubble Text - Sue Ellen Francisco
Roboto (Regular, Bold)

Design Prototypes

Setting up and testing mail delivery using Mailhog in local development

The following is how to setup mailhog, which is a tool to intercept e-mails in a local environment for e-mail testing purposes. The following steps only apply to MacOS users. For non MacOS users, please refer to https://mailtrap.io/blog/mailhog-explained/

  1. Set up Mailhog using Homebrew. Run the following command in the terminal:
  • brew install mailhog
  1. Then start Mailhog in the terminal with:
  • brew services start mailhog
  1. After sending an e-mail locally in a test environment, visit the following link:
  • http://localhost:8025/
  1. To stop Mailhog use:
  • brew services stop mailhog

Production/Staging Setup

Environment Variables

For the hosting environment, you'll need the following environment variables setup to point to your SMTP/Email service.

SHELTERASSIST_HOSTNAME = "https://shelterassist.herokuapp.com
SHELTERASSIST_SMTP_SERVER = "smtp.example.com"
SHELTERASSIST_SMTP_PORT = 587
SHELTERASSIST_SMTP_USER = "myusername"
SHELTERASSIST_SMTP_PASSWORD = "password"
SHELTERASSIST_EMAIL_ADDRESS = "[email protected]"

SHELTERASSIST_EMAIL_ADDRESS is the from address used for outgoing email like password reminders and magic-link emails.

shelter-assist's People

Contributors

saturnflyer avatar chriszimmerman avatar alitopal89 avatar freestylebit avatar webbkyr avatar thestephenmarshall avatar chelseatroy avatar ibulmer avatar maggie-larkin avatar dependabot[bot] avatar jon1735 avatar wadewinningham avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.