Skip to content

A website that allows a community to come together to find their lost pets. If a person sees a stray animal, they can take a photo and submit a form of the animals description. The form will (using their location or a typed in address) put a pin on a map (using Google Maps API). Mousing over the pin will show the photo thumbnail.

Notifications You must be signed in to change notification settings

nakita-strangeways/find_fido_project

Repository files navigation

FindFido_logo

FIND FIDO

A website that allows a community to come together to find their lost pets.

Tech Stack

  • Python
  • JavaScript (AJAX, JSON)
  • HTML
  • CSS
  • SQL

Built With

Lets Walk Through This!

FindFido_homepage

FindFido_CatPin

FindFido_DogPin

FindFido_FoundPin

Find Fido is a web app that utilizes the community, photos, and Google Maps to create a network of stray or lost animals. The markers on the map reflect the animal species, as well as if it has been successfully found and returned home.

If a user has lost a pet, all they need to do is check the pet's last seen location, either using their current location (if allowed), the address bar, or dragging the map. Once there, they can filter the map to fit their pet's description.

map_windowmodal1

Clicking one of the map pins opens a small window for quick glance searches. It contains a small image, the size, colors, and date/time seen. This way, a user looking for a lost pet can quickly check if it might be theirs. Because this is so small, users can click the window and open a modal with a larger image, and more information.

The Modal has the same information as the window, and then some more, like notes about the sighting, and the username of the person who saw the animal/took the photo. There is also a button that, if this is the user's dog, and he is reunited with his family, can be clicked, and it will change the map pin to the green checkmark.

missing_pets_poster

modal2

Lastly, there is a page where owners can submit their missing pets, like a missing pet poster. This lets the community know to what pets to keep an eye out for. Each "poster" has the pet's name, an image of the pet, and the last date it was seen. Users can filter through the results to find particular pets, or pets in their neighborhood. When you click on a "poster," it opens a modal with more information, and a map of where it was lost at.

Owners can report a missing pet poster by clicking the "Report Here!" button, which will direct them to a form. Once completed, the form will automatically redirect them to the missing posters page with their pet poster now created.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for testing purposes.

Prerequisites

All prerequisites are in the requirements.txt file

Gblinker==1.4
click==6.7
Flask==1.0.2
Flask-DebugToolbar==0.10.1
Flask-SQLAlchemy==2.3.2
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
psycopg2==2.7.5
SQLAlchemy==1.2.8
Werkzeug==0.14.1

Installing

Create a virtual environment and install requirements, using the requirements.txt file

$ virtualenv env
 New python executable in env/bin/python
 Installing setuptools, pip...done.
$ source env/bin/activate
(env) $ pip3 install -r requirements.txt
 Downloading/unpacking ...
 Successfully installed Flask Flask-SQLAlchemy Jinja2 ...
 Cleaning up...

Source the secrets from the secrets.sh file

(env) $ source secrets.sh

For the app to run, you will need to feed in the seed data, and set up PSQL tables:

(env) $ createdb (table name)
(env) $ python3 -i seed.py

This will start interactive python, where the following will print:

Colors inserted
Species inserted
Sizes inserted
Breeds inserted
Users inserted
Animals inserted
Animal Colors inserted
lost pets inserted
lostPet Colors inserted

Exit interactive python(ctrl+c). To open the app in your browser, run server.py

$ python3 server.py
 * Serving Flask app "server" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

Author

Acknowledgments

I couldn't have done it without you!


In memory of Raven

Raven

About

A website that allows a community to come together to find their lost pets. If a person sees a stray animal, they can take a photo and submit a form of the animals description. The form will (using their location or a typed in address) put a pin on a map (using Google Maps API). Mousing over the pin will show the photo thumbnail.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published