Skip to content

There will be owners and pets in this system. One special owner, which is called as 'shelter', is only allowed to delete a pet.

License

Notifications You must be signed in to change notification settings

Joeycho/sinatra-pet-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sinatra-pet-management-system

Description

There will be owners and pets in this system. Owners have two types, as normal owner or shelter owner. Only 'shelter' type of owner could delete each pet data from the database. All owners would have access to see owner's list and are able to adopt new dog, and existing dogs from shelters. They also can edit their dog's name. Normal owners only can leave their pets to shelters, and are not able to delete their pets.

Install instructions

bundle install

This command is for installing all the relevant gem with this application.

Next, type this command on the terminal for setting up the database.

rake db:migrate rake db:seed

When you type rake db:seed, it will add the 'heaven_shelter' for all pets, as the final destination.

After setting up the database, use 'shotgun' to run the application on the server.

Contributors

From the former group pjoject, sinata-fwitter-group-project-v-000

https://github.com/Joeycho/sinatra-fwitter-group-project-v-000/blob/wip/app/controllers/tweets_controller.rb

Other sources are following,

playlister-sinatra: flash gem for alerting error message interactively.

https://github.com/Joeycho/sinatra-fwitter-group-project-v-000/blob/wip/app/controllers/tweets_controller.rb

nyc-sinatra: to fix file structures including sub-directory.

https://github.com/learn-co-curriculum/nyc-sinatra/tree/solution/app

About

There will be owners and pets in this system. One special owner, which is called as 'shelter', is only allowed to delete a pet.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published