This application allows you to create a visual resource for ethnicities in different places around the world. The project uses the Flickr api to generate the 100 most recent photographs from each query.
Try App
Test email: demo@demo
Test password: demo
Search
Save
This project creates diverse selection of images that more accurately represent people who live in a city. This API produces a notably better selection of photos compared to many stock photo providers. Users can opt to personally contact the photographers on Flickr, or use this as a visual resource to understand the cultural diversity of places.
- Python
- Javascript
- Flask
- Jinja
- SQLalchemy
- postgreSQL
APIs
- Flickr
- Google Places
Front-end
- Javascript
- JQuery
- AJAX
- Bootstrap
- HTML/ CSS
Users are able to query for images of people based on city.
- Create a search bar that allow user to search for people in a specific city
- Allow users to log into their own account to save pictures
- Allow users to save pictures to a specific collection
- Create functionality to add/delete photos for a curated collection
- Dynamically add collection with first image and location to user's gallery
- Create resources for user to reach out to photographers
- Integrate API for stock photo choices
- Give users the choice to pay for licensed photos
- Allow users to share their collections with other users
- Demo
git clone
this repositorycd divercity
to go to the directorypip3 install -r requirements.txt
to install required packages- Sign up for an API key at flickr API (You can enter "demo" for both boxes)
- Create a new file called
secrets.sh
in the Divercity directory - Save your API in this format
export API_KEY="xxxxx"/n export API_SECRET="xxxxx"
source secrets.sh
back in the terminalpython3 seed.py
to set up databasepython3 server.py
to launch and view on (http://localhost:5000/)!
python3 test.py
to see individual testscoverage run --source=. --omit="env/*" test.py
to not test test.py filecoverage report -m
to see a report
Deborah Ong - @debieday - [email protected]
Project Link: http://divercity.deborahong.com/