Skip to content

A puppy shelter database management project using Python and SQLAlchemy

Notifications You must be signed in to change notification settings

robertkohl125/PuppyShelter

Repository files navigation

#PuppyShelter Project

This project sets up a puppy shelter website supported by a relational database and demonstrates some code to manipulate that database. Please view my commits for latest updates.

###Features

  • All CRUD operators for database modules
  • Flask
  • WTForms including selects and validators
  • Logging
  • email
  • SMS (Twilio)
  • Pagination

###Bugs/Lingering issues

  • Edit functions not auto filling HTML fields
  • Puppy picture links not working

###Technology Used

  • Python 2.7.10
  • Flask
  • WTForms
  • SQLite
  • Bootstrap
  • SQLAlchemy
  • Oracle VM VirtualBox 5.0.4
  • Vagrant 1.7.4
  • Twilio

###Directory Structure

+--README.md
+--config.py
+--puppyExpressionLanguage.py
+--puppyORM.py
+--puppypopulator.py
+--puppyShelterDBsetup.py
+--runserver.py
+--flask-wtf
|   +--(various WTForms files)
+--PuppyShelter
    +--__init__
    +--forms.py
    +--mainView.py
    +--models.py
    +--loginView.py
    +--ownerViews.py
    +--puppyViews.py
    +--shelterViews.py
    +--logs
    |   +--mainlog
    |   +--mainlog.log.1
    |   +--mainlog.log.3
    +--components
    |   +--__init__.py(empty file)
    |   +--script.html
    |   +--sms.py
    |   +--email.py
    +--json
    |   +--__init__.py(empty file)
    |   +--fb_client_secrets.json
    |   +--g_client_secrets.json
    |   +--gh_client_secrets.json
    +--static
    |   +--(various bootstrap.css files)
    |   +--styles.css
    |   +--stylesForm.css
    +--templates
        +--login.html
        +--adoptPuppy.html
        +--main.html
        +--ownerAll.html
        +--ownerDelete.html
        +--ownerEdit.html
        +--ownerNew.html
        +--ownerView.html
        +--puppyAll.html
        +--puppyDelete.html
        +--puppyEdit.html
        +--puppyNew.html
        +--puppyView.html
        +--shelterAll.html
        +--shelterDelete.html
        +--shelterEdit.html
        +--shelterNew.html
        +--shelterView.html

###To Begin

  1. Follow the instructions found here to install VirtualBox and Vagrant.
  2. Follow the instructions found here to install Twilio.
  3. Follow the instructions found here to install Flask Mail.
  4. Clone the Github repository here.
  5. Navigate to fullstack/vagrant/PuppyShelter using the command shell. The directory structure is listed above.
  6. From a command line run runserver.py the set up the database with the following command:
  • $python runserver.py
  1. Hit ctrl+c to stop the process.
  2. Run puppypopulator.py to add puppies and shelters to the database with the following command:
  • $python puppypopulator.py
  1. Run runserver.py again with the following command:
  • $python runserver.py

###Support/Contact

If you are having issues, please let me know. Contributions, tips and comments are welcome!

###License

The MIT License (MIT)

Copyright (c) [2015] [Robert Kohl]

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

A puppy shelter database management project using Python and SQLAlchemy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published