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.
- All CRUD operators for database modules
- Flask
- WTForms including selects and validators
- Logging
- SMS (Twilio)
- Pagination
- Edit functions not auto filling HTML fields
- Puppy picture links not working
- Python 2.7.10
- Flask
- WTForms
- SQLite
- Bootstrap
- SQLAlchemy
- Oracle VM VirtualBox 5.0.4
- Vagrant 1.7.4
- Twilio
+--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
- Follow the instructions found here to install VirtualBox and Vagrant.
- Follow the instructions found here to install Twilio.
- Follow the instructions found here to install Flask Mail.
- Clone the Github repository here.
- Navigate to fullstack/vagrant/PuppyShelter using the command shell. The directory structure is listed above.
- From a command line run runserver.py the set up the database with the following command:
- $
python runserver.py
- Hit ctrl+c to stop the process.
- Run puppypopulator.py to add puppies and shelters to the database with the following command:
- $
python puppypopulator.py
- Run runserver.py again with the following command:
- $
python runserver.py
If you are having issues, please let me know. Contributions, tips and comments are welcome!
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.