banane / djurpark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

A zoo app to manage animals, habitats, and personnel (employees) securely

Ability to get all animals that need assistance, or are in or out of habitat, getAnimals (see screenshots for examples)

  • View all associated models in requests
  • Create note, related to an animal or habitat
  • Create an animal with nested associations

About

  • Rails 7.1.3.2
  • PostGres 14
  • Ruby 3.0.3

Setup

1.bundle install

2.bundle exec rake db:create && rake db:migrate && rake db:seed

Run tests

1.bundle exec rake db:test:prepare && bundle exec rspec

Entity Relationship Diagram

Screenshot 2024-04-27 at 2 43 46 PM

Screenshots

  • getAnimals
Screenshot 2024-04-27 at 1 18 22 PM
  • createAnimal
Screenshot 2024-04-27 at 2 16 53 PM
  • createNote Screenshot 2024-04-27 at 2 25 41 PM

Requirements

  • GraphQL mutations and queries: getAnimals(inHabitat, needingAttention), createNote, and createAnimal
  • Secured PII on Employee model
  • JSON Storage for Animal's dietary requirements and habitat's preferences
  • Employee enums for roles, Animal enums for health status

About


Languages

Language:Ruby 95.7%Language:Dockerfile 3.3%Language:HTML 0.5%Language:Shell 0.4%Language:JavaScript 0.1%