Skip to content

ryangallen/pet-tracker

Repository files navigation

Pet Tracker

A demo app built with Django and AngularJS, and Django Rest Framework for the API.

Scenario/Requirements

A pet store decides they want a way to keep track of their dogs and cats. They said they want to be able to store these attributes:

  • name
  • breed
  • birthday

The pet store wants to be able to:

  • list all pets
  • list all dogs
  • list all cats
  • view one dog
  • view one cat
  • add a dog
  • add a cat
  • delete a dog
  • delete a cat

Screenshots

Login

Login

Dashboard

Dashboard

Dashboard filtered

Dashboard filtered

Add a pet

Add a pet

Select animal type

Select animal type

Select animal breed

Select animal breed

Animal details form

Animal details form

Animal added

Animal added

Animal details

Animal details

Delete animal

Delete animal

Confirm delete animal (blank)

Confirm delete animal (blank)

Confirm delete animal (name entered)

Confirm delete animal (name entered)

Dev Environment

This application is designed to run in a Python 3.4 virtualenv.

Requirements

Use pip install to install these required packages.

  • Django
  • Markdown
  • djangorestframework
  • selenium

Running

Run the test server with python manage.py runserver. View the application in a web browser at http://127.0.0.1:8000/.

Testing

Run the tests with python manage.py test. See Testing in Django for more information.

Funcational tests are built with Selenium and run in Mozilla Firefox. See the Selenium Webdriver API docs for testing in other browsers.

License

The MIT License (MIT)

Copyright (c) 2017 Ryan Allen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Demo pet store management app built with Django, Django Rest Framework, and AngularJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published