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
- Rails 7.1.3.2
- PostGres 14
- Ruby 3.0.3
1.bundle install
2.bundle exec rake db:create && rake db:migrate && rake db:seed
1.bundle exec rake db:test:prepare && bundle exec rspec
![Screenshot 2024-04-27 at 2 43 46 PM](https://private-user-images.githubusercontent.com/94928/326215968-39273403-7314-4acf-8141-4f4d72fd46d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NzE3MTQsIm5iZiI6MTcyNTU3MTQxNCwicGF0aCI6Ii85NDkyOC8zMjYyMTU5NjgtMzkyNzM0MDMtNzMxNC00YWNmLTgxNDEtNGY0ZDcyZmQ0NmQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA1VDIxMjMzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY0ZGNlYjhkOTdkODFjYWQwODA5MjJiMjM0MzE1ZWI3ODI2YjJkZWUyODAyMWM1M2YyZjAyZjQ2NGZlNjY1MzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XhZ8TWh2cKgCdZWSj3WgnHpTtE-VWBshBQoLL0YRCE8)
- getAnimals
![Screenshot 2024-04-27 at 1 18 22 PM](https://private-user-images.githubusercontent.com/94928/326210862-f7ee825e-09f7-4cb4-8f0b-cdde9c382169.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NzE3MTQsIm5iZiI6MTcyNTU3MTQxNCwicGF0aCI6Ii85NDkyOC8zMjYyMTA4NjItZjdlZTgyNWUtMDlmNy00Y2I0LThmMGItY2RkZTljMzgyMTY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA1VDIxMjMzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiZTEzMTM3MTZhNzI2N2JjOTAxNGFiMTkxMGFkNTU3MTg5YzAxMTEzZWE3MmQ3NTg5MWRlMGIwMWMzNDI1ZTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.xyiQQrWbjApTBwTg6cxxJBtNWdmpLDrgI3YSmtBQM4Q)
- createAnimal
![Screenshot 2024-04-27 at 2 16 53 PM](https://private-user-images.githubusercontent.com/94928/326214969-625d2163-18a6-47f6-beab-41e3afcedea0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NzE3MTQsIm5iZiI6MTcyNTU3MTQxNCwicGF0aCI6Ii85NDkyOC8zMjYyMTQ5NjktNjI1ZDIxNjMtMThhNi00N2Y2LWJlYWItNDFlM2FmY2VkZWEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA1VDIxMjMzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWExZmM3YmEwMzQ5OWE4ZDZkMDFlMmQwOTMxYjVkMWQ0OGZhZDk2MDczNjI0YmM4OTM0NDA3NDIzYzZmOWY1YjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.K9NCa0GSfoFQ91FFBRiSGt30dg18q7WDNUO-oKhfi58)
- 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